Solved

native2ascii

Posted on 2004-08-27
14
378 Views
Last Modified: 2008-02-01
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?
0
Comment
Question by:pouli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
14 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 11911076
Are you viewing the file in Notepad? (That sounds like a stupid editor that can't deal with line feeds cross-platform)
0
 

Author Comment

by:pouli
ID: 11911117
With  number of different editors Wordpad, UltraEdit etc.

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11911139
OK - what character is the original?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:pouli
ID: 11911244
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.

0
 

Author Comment

by:pouli
ID: 11911254
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
0
 

Author Comment

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

Author Comment

by:pouli
ID: 11911263
I have just copied/paste the file to the page and voila :)

What is that ??
Escaped form ?
0
 
LVL 35

Assisted Solution

by:TimYates
TimYates earned 20 total points
ID: 11911336
yeah, they are HTML escaped chars...
0
 

Author Comment

by:pouli
ID: 11911368
The file must be at UTF8 in order for the native2ascii to work right
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 30 total points
ID: 11911381
Is everything working now?
0
 

Author Comment

by:pouli
ID: 11911484
Yes.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11911490
OK - you may want to delete this then - just post 0-pointer to CS
0
 

Author Comment

by:pouli
ID: 11911494
that's ok. :)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11911501
OK then - thanks :-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question