Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

native2ascii

Posted on 2004-08-27
14
Medium Priority
?
382 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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 60 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 90 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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:
Suggested Courses

772 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