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?
I take always a wrong escaped character. The box instead of the one that is written at the original file.
Why?
Are you viewing the file in Notepad? (That sounds like a stupid editor that can't deal with line feeds cross-platform)
ASKER
With number of different editors Wordpad, UltraEdit etc.
OK - what character is the original?
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.
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.
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.pr operties") , "UTF8"));
String str = in.readLine();
But this will be costly in terms of programming. I will have to change a lot of things
Now I am thinking of using
BufferedReader in = new BufferedReader(
new InputStreamReader(new FileInputStream("lan_el.pr
String str = in.readLine();
But this will be costly in terms of programming. I will have to change a lot of things
ASKER
EN=Ελλη ;ν	 53;κ& #942;
FR=Γαλλ ;ι	 54;ή
CS=Τσεχ ;ι	 54;ή
DA=Δανι ;κ	 42;
DE=Γερμ ;α	 57;ι& #954;ή ;
EL=Ελλη ;ν	 53;κ& #942;
ES=Ισπα ;ν	 53;κ& #942;
ET=Εσθο ;ν	 53;κ& #942;
FI=Φινλ ;α	 57;δ& #953;κ ;ή
HU=Ουγγ ;ρ	 53;κ& #942;
IT=Ιταλ ;ι	 54;ή
LT=Λιθο ;υ	 45;ν& #953;κ ;ή
LV=Λετο ;ν	 53;κ& #942;
NL=Ολλα ;ν	 48;ι& #954;ή ;
MT=Μαλτ ;έ	 50;ι& #954;η ;
PL=Πολω ;ν	 53;κ& #942;
PT=Πορτ ;ο	 47;α& #955;ι ;κ	 42;
SL=Σλοβ ;ε	 57;ι& #954;ή ;
SK=Σλοβ ;α	 54;ι& #954;ή ;
SV=Σουη ;δ	 53;κ& #942;
FR=Γαλλ
CS=Τσεχ
DA=Δανι
DE=Γερμ
EL=Ελλη
ES=Ισπα
ET=Εσθο
FI=Φινλ
HU=Ουγγ
IT=Ιταλ
LT=Λιθο
LV=Λετο
NL=Ολλα
MT=Μαλτ
PL=Πολω
PT=Πορτ
SL=Σλοβ
SK=Σλοβ
SV=Σουη
ASKER
I have just copied/paste the file to the page and voila :)
What is that ??
Escaped form ?
What is that ??
Escaped form ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The file must be at UTF8 in order for the native2ascii to work right
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes.
OK - you may want to delete this then - just post 0-pointer to CS
ASKER
that's ok. :)
OK then - thanks :-)