cancel
Showing results for 
Search instead for 
Did you mean: 

How to translate properties with special characters

Former Member
0 Kudos

I need translate properties with spaces and others ó,ö,ä,á,.....

For example, translate:

Red issue

by

Red

The space character cause problems and translation not is success

Or values with character ä

I have been testing \u00E4 =ä but without success

Regards!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Is this a question about the format of Java property bundles?

In which case,

http://download.oracle.com/javase/1.4.2/docs/api/java/util/Properties.html#load%28java.io.InputStrea...

should have all information you need.

In doubt, just create a sample Properties object, write it to disk, and inspect the result.

Former Member
0 Kudos

Hi, I tried with UTF8 and UTF-16 but without translation success

UTF-8 only convert some characters and UTF-16 convert all. The output content was include in bundle file.

Regards!

Former Member
0 Kudos

Hi,

try to use some another code pages such as Cp1250

Regards.

Former Member
0 Kudos

Hi, Ian!

Try to use [native2ascii - Native-to-ASCII Converter|http://download.oracle.com/javase/6/docs/technotes/tools/solaris/native2ascii.html]

The syntax look like this:

native2ascii.exe -encoding <[Encoding|http://download.oracle.com/javase/6/docs/technotes/guides/intl/encoding.doc.html]> <source file> <target file>

The file "native2ascii.exe" you can find in JDK of your Java installation or download it.

Regards, Mikhail.

former_member1098367
Participant
0 Kudos

Hi.

In wich aplication you need to translate this?

Best regards

João Macedo