Link to home
Start Free TrialLog in
Avatar of ShaileshShinde
ShaileshShindeFlag for India

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of ShaileshShinde

ASKER

The example is below...

Chinese Characters [¿¿¿¿]
Converted to java chars [\u505A\u696D\u540D\u7A31]

Thanks,
Shail
Please find attached sample file.
u505A.docx
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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
Thanks Expert!
:)