Solved

native2ascii

Posted on 2004-08-27
14
342 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
Comment Utility
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
Comment Utility
With  number of different editors Wordpad, UltraEdit etc.

0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
OK - what character is the original?
0
 

Author Comment

by:pouli
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I have just copied/paste the file to the page and voila :)

What is that ??
Escaped form ?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 35

Assisted Solution

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

Author Comment

by:pouli
Comment Utility
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
Comment Utility
Is everything working now?
0
 

Author Comment

by:pouli
Comment Utility
Yes.
0
 
LVL 86

Expert Comment

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

Author Comment

by:pouli
Comment Utility
that's ok. :)
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
OK then - thanks :-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
hash value 2 38
Updating Java 9 86
word0 challenge 3 55
eclipse compiler vs Installed JREs option 3 36
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now