Re: Greek symbols

David Li <[email protected]> Mon, 15 Dec 2003 15:20:30 +0900
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
What's your locale when you compile your program? Java's I/O rules 
assume the input files is in the default locale's encoding while it 
reads it. You can use the --html:encoding option or <html 
encoding="SHIFT_JIS"/> in the options.xml to overwrite the option for 
HTML files.

However, your particular problem is with Java compilation rather then 
XMLC. Make sure your locale is set to Greek before you compile or use 
native2ascii on your source codes before compile.

David


On Dec 7, 2003, at 2:41 AM, Stefan Koulouris wrote:

> Hello,
>  
>     Does anyone have an idea how to get greek symbols in the XMLC 
> generated code?
>     I can't get it to work...
>  
> Example
>  
>     page.setTextName("Ονομα")
>  
> gives as result ?????
>  
> but that should be down to IntelliJ I use because everything I type in 
> there in Greek gets tranformed to ?????
>  
> now when I read greek signs from a text file :
>  
>     page.setTextName(br.readLine())
>  
> i get thisÿþŸ½¿¼±
>  
> next thing when doing it this way:
>  
>     page.setTextName("&Omicron;&nu;&omicron;&mu;&alpha;")
>  
> the ampersand get changed to &amp;  with the result 
> being:ÿþ&Omicron;&nu;&omicron;&mu;&alpha
>  
> so, can anyone give me some pointers on how to deal with this 
> problem...
>  
> Thanks in advance,
>  
> Stefan Koulouris
>