Unicode Support
Ronen
Posts: 55
Hello all,
Hope this is the right place to post this,
I have a module that i wrote some time ago to the Russound SMS3 mp3 audio serevr that works fine.
I have a new project that involves some MP3 files in Russian.
when they are being showed on the MVP-7500 they look like $%&%$, so i understand that it's because i need to use Unicode.
After looking in the MVP manual i see the command "^UNI", but with this command i will have to write a whole new module....
isn't there another way to deal with unicode in a simpler way? because this isn't "Unicode Support".....
Thank you
Hope this is the right place to post this,
I have a module that i wrote some time ago to the Russound SMS3 mp3 audio serevr that works fine.
I have a new project that involves some MP3 files in Russian.
when they are being showed on the MVP-7500 they look like $%&%$, so i understand that it's because i need to use Unicode.
After looking in the MVP manual i see the command "^UNI", but with this command i will have to write a whole new module....
isn't there another way to deal with unicode in a simpler way? because this isn't "Unicode Support".....
Thank you
0
Comments
If by entirely different module you mean one that works in latin1 and another in Unicode, then blame it on Russound that should be able to ALWAYS return Unicode and on AMX to support UTF-16 and not utf8 that could have offered ASCII support out of the box.
One thing to check is what is the Russound encoding of the russian strings as the MVP will expect UTF-16 (not sure of the flavour). Should Russound export utf8 (likely), then a conversion is necessary.
HTH
Fred
Ronen, let me know if this helps:
This was written to take a UTF string and format it for either a G3 panel or a G4 panel, based on the "PanelVer" variable set elsewhere in the program. For a G3 panel, the "UnicodeReplacementChar" is a single character (I used an underscore) that would be substituted anywhere a character outside the G3 panel's character set might appear.
I'd call this routine with something like this:
- Chip
Chip, thanks alot, worked great with the Russian.
with the hebrew there is still a little problem:
because hebrew is a languge that is writen right to left it will show the words backwords, so i will try to change your function a bit, hope i will solve the problem.
thank you again
- Chip
If you trip across any examples of those characters, I could probably tell you if it's UTF-8 or not. UTF-8 multi-byte characters being sent straight to a TP would certainly explain the appearance of odd characters here and there. Were thre always at least two characters each time?
- Chip