Link to home
Start Free TrialLog in
Avatar of pouli
pouli

asked on

native2ascii

I have a problem with native2ascii

I take always a wrong escaped character. The box instead of the one that is written at the original file.

Why?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Are you viewing the file in Notepad? (That sounds like a stupid editor that can't deal with line feeds cross-platform)
Avatar of pouli
pouli

ASKER

With  number of different editors Wordpad, UltraEdit etc.

OK - what character is the original?
Avatar of pouli

ASKER

the original characters are being saved fromt he notepad
1) As an Ansi file (Greek characters)
2) As Unicode
3) As UTF-8

All of the Greek characters

But the result is the same.

Avatar of pouli

ASKER

I think that if we encode in the right form the Greek characters it will save me a lot of refectorng.

Now I am thinking of using        

BufferedReader in = new BufferedReader(
            new InputStreamReader(new FileInputStream("lan_el.properties"), "UTF8"));
String str = in.readLine();

But this will be costly in terms of programming. I will have to change a lot of things
Avatar of pouli

ASKER

EN=Ελληνική
FR=Γαλλική
CS=Τσεχική
DA=Δανική
DE=Γερμανική
EL=Ελληνική
ES=Ισπανική
ET=Εσθονική
FI=Φινλανδική
HU=Ουγγρική
IT=Ιταλική
LT=Λιθουανική
LV=Λετονική
NL=Ολλανδική
MT=Μαλτέζικη
PL=Πολωνική
PT=Πορτογαλική
SL=Σλοβενική
SK=Σλοβακική
SV=Σουηδική
Avatar of pouli

ASKER

I have just copied/paste the file to the page and voila :)

What is that ??
Escaped form ?
SOLUTION
Avatar of TimYates
TimYates
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
Avatar of pouli

ASKER

The file must be at UTF8 in order for the native2ascii to work right
ASKER CERTIFIED SOLUTION
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
Avatar of pouli

ASKER

Yes.
OK - you may want to delete this then - just post 0-pointer to CS
Avatar of pouli

ASKER

that's ok. :)
OK then - thanks :-)