Solved

native2ascii

Posted on 2004-08-27
14
376 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
Industry Leaders: 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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…
Suggested Courses

751 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