Solved

native2ascii

Posted on 2004-08-27
14
369 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
diffSum example 4 53
login jsp example 24 68
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 58
What is the use of Forwarding Class in java 1 18
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

820 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