ShaileshShinde
asked on
Unicode to Java char convertion
Hello Experts,
There is an requirement for converting translated strings into java chars[\u00f7] using Java or Perl Script, VBScript. The script should recognize the language and convert the strings into java chars.
Can you please provide any references or sample codes to do this?
Thanks,
Shail
There is an requirement for converting translated strings into java chars[\u00f7] using Java or Perl Script, VBScript. The script should recognize the language and convert the strings into java chars.
Can you please provide any references or sample codes to do this?
Thanks,
Shail
I'm not clear what the requirement is (java String is essentially a wrapper round an array of char anyway) so please provide sample input as an attachment
ASKER
The example is below...
Chinese Characters [¿¿¿¿]
Converted to java chars [\u505A\u696D\u540D\u7A31]
Thanks,
Shail
Chinese Characters [¿¿¿¿]
Converted to java chars [\u505A\u696D\u540D\u7A31]
Thanks,
Shail
ASKER
Please find attached sample file.
u505A.docx
u505A.docx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello Experts,
Couple of queries:
1> This utility will applies for all languages?
2> It supports only .txt files or any other file formats?
I just tried with Chinese characters .txt file and it works as required.
However, we do have other file formats and not just .txt files.
Thanks,
Shail
Couple of queries:
1> This utility will applies for all languages?
2> It supports only .txt files or any other file formats?
I just tried with Chinese characters .txt file and it works as required.
However, we do have other file formats and not just .txt files.
Thanks,
Shail
However, we do have other file formats and not just .txt files.Reading a word processing file is not the job of a utility like native2ascii - it's the job of a word processing program and therefore a separate problem
ASKER
Thanks Expert!
:)