You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by EROL TEZCAN <st...@yahoo.com> on 2005/06/24 10:57:39 UTC

native2ascii

Hi,
 
In my application, I want to create ApplicationResources_tr.properties file for Turkish  using native2ascii
 
For this , I am  using
 
native2ascii -encoding UTF-8   ApplicationResources_tr_old.properties  ApplicationResources_tr.properties
 
command from dos prompt.
 
But this process encode the all Turkish chars in the source properties files, as  \ufffd .
 
What should I do to convert right chars from Turkis to utf-8 ?
 
Thanks..
 
 
Erol


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: native2ascii

Posted by haim <ha...@012.net.il>.
If you are using eclipse may I suggest the following
http://propedit.sourceforge.jp/index_en.html

Made my life a lot easer


EROL TEZCAN wrote:

>Very Thanks Paul !!
> 
>Now it works fine.
> 
>I opened the old properties file, and saved it as UTF-8, and then run same native2ascii command. It encode all Turkish chars to right UTF-8 chars.
> 
>Thanks again,
> 
>Erol
>
>Paul Moody <pa...@yahoo.co.uk> wrote:
>Below is my understanding of the solution. It is a bit
>annoying that property files can not be UTF-8 encoded
>but that seems to be the case. Anyway, here is what I
>have done and it seems to work...
>
>- you should store your Turkish strings in a text
>file with UTF-8 format (you can open the file in
>notepad and when saving choose the UTF-8 format).
>
>- you run the native2ascii to convert the UTF-8
>strings into the required format with the strange
>looking things like \ufffd (or whatever). Don't worry,
>this is what is needed for the property files used by
>struts.
>
>- your JSPs should have a directive telling your
>browser that they are in UTF-8 format. Near the top of
>every JSP we have "contentType="text/html;charset=UTF-8"
>pageEncoding="UTF-8" language="java" %>"
>
>Hopefully this should work. Good luck.
>
>
>--- EROL TEZCAN wrote:
>
>  
>
>>Yes, I tried processed files, but in jsp file chars
>>seem wrong like &#65533;
>>
>>
>>Jana Parvanova wrote:
>>This should be Ok.
>>Have you tried using the processed files?
>>
>>
>>----- Original Message ----- 
>>From: "EROL TEZCAN" 
>>To: "sturts_apache_user sturts_apache_user" 
>>Sent: Friday, June 24, 2005 11:57 AM
>>Subject: native2ascii
>>
>>
>>    
>>
>>>Hi,
>>>
>>>In my application, I want to create
>>>      
>>>
>>ApplicationResources_tr.properties
>>file for Turkish using native2ascii
>>    
>>
>>>For this , I am using
>>>
>>>native2ascii -encoding UTF-8
>>>      
>>>
>>ApplicationResources_tr_old.properties
>>ApplicationResources_tr.properties
>>    
>>
>>>command from dos prompt.
>>>
>>>But this process encode the all Turkish chars in
>>>      
>>>
>>the source properties
>>files, as \ufffd .
>>    
>>
>>>What should I do to convert right chars from
>>>      
>>>
>>Turkis to utf-8 ?
>>    
>>
>>>Thanks..
>>>
>>>
>>>Erol
>>>
>>>
>>>__________________________________________________
>>>Do You Yahoo!?
>>>Tired of spam? Yahoo! Mail has the best spam
>>>      
>>>
>>protection around
>>    
>>
>>>http://mail.yahoo.com
>>>      
>>>
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>user-unsubscribe@struts.apache.org
>>For additional commands, e-mail:
>>user-help@struts.apache.org
>>
>>
>>
>>---------------------------------
>>Yahoo! Mail Mobile
>>Take Yahoo! Mail with you! Check email on your
>>mobile phone.
>>    
>>
>
>
>
>
>___________________________________________________________ 
>How much free photo storage do you get? Store your holiday 
>snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>		
>---------------------------------
>Yahoo! Sports
> Rekindle the Rivalries. Sign up for Fantasy Football
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: native2ascii

Posted by EROL TEZCAN <st...@yahoo.com>.
Very Thanks Paul !!
 
Now it works fine.
 
I opened the old properties file, and saved it as UTF-8, and then run same native2ascii command. It encode all Turkish chars to right UTF-8 chars.
 
Thanks again,
 
Erol

Paul Moody <pa...@yahoo.co.uk> wrote:
Below is my understanding of the solution. It is a bit
annoying that property files can not be UTF-8 encoded
but that seems to be the case. Anyway, here is what I
have done and it seems to work...

- you should store your Turkish strings in a text
file with UTF-8 format (you can open the file in
notepad and when saving choose the UTF-8 format).

- you run the native2ascii to convert the UTF-8
strings into the required format with the strange
looking things like \ufffd (or whatever). Don't worry,
this is what is needed for the property files used by
struts.

- your JSPs should have a directive telling your
browser that they are in UTF-8 format. Near the top of
every JSP we have "contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" language="java" %>"

Hopefully this should work. Good luck.


--- EROL TEZCAN wrote:

> Yes, I tried processed files, but in jsp file chars
> seem wrong like &#65533;
> 
> 
> Jana Parvanova wrote:
> This should be Ok.
> Have you tried using the processed files?
> 
> 
> ----- Original Message ----- 
> From: "EROL TEZCAN" 
> To: "sturts_apache_user sturts_apache_user" 
> Sent: Friday, June 24, 2005 11:57 AM
> Subject: native2ascii
> 
> 
> > Hi,
> >
> > In my application, I want to create
> ApplicationResources_tr.properties
> file for Turkish using native2ascii
> >
> > For this , I am using
> >
> > native2ascii -encoding UTF-8
> ApplicationResources_tr_old.properties
> ApplicationResources_tr.properties
> >
> > command from dos prompt.
> >
> > But this process encode the all Turkish chars in
> the source properties
> files, as \ufffd .
> >
> > What should I do to convert right chars from
> Turkis to utf-8 ?
> >
> > Thanks..
> >
> >
> > Erol
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
> 
> ---------------------------------
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your
> mobile phone.




___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


		
---------------------------------
Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football

Re: native2ascii

Posted by Paul Moody <pa...@yahoo.co.uk>.
Below is my understanding of the solution. It is a bit
annoying that property files can not be UTF-8 encoded
but that seems to be the case. Anyway, here is what I
have done and it seems to work...

 - you should store your Turkish strings in a text
file with UTF-8 format (you can open the file in
notepad and when saving choose the UTF-8 format).

 - you run the native2ascii to convert the UTF-8
strings into the required format with the strange
looking things like \ufffd (or whatever). Don't worry,
this is what is needed for the property files used by
struts.

 - your JSPs should have a directive telling your
browser that they are in UTF-8 format. Near the top of
every JSP we have "<%@ page
contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" language="java" %>"

Hopefully this should work. Good luck.


--- EROL TEZCAN <st...@yahoo.com> wrote:

> Yes, I tried processed files, but in jsp file chars
> seem wrong like &#65533;
> 
> 
> Jana Parvanova <ja...@sirma.bg> wrote:
> This should be Ok.
> Have you tried using the processed files?
> 
> 
> ----- Original Message ----- 
> From: "EROL TEZCAN" 
> To: "sturts_apache_user sturts_apache_user" 
> Sent: Friday, June 24, 2005 11:57 AM
> Subject: native2ascii
> 
> 
> > Hi,
> >
> > In my application, I want to create
> ApplicationResources_tr.properties
> file for Turkish using native2ascii
> >
> > For this , I am using
> >
> > native2ascii -encoding UTF-8
> ApplicationResources_tr_old.properties
> ApplicationResources_tr.properties
> >
> > command from dos prompt.
> >
> > But this process encode the all Turkish chars in
> the source properties
> files, as \ufffd .
> >
> > What should I do to convert right chars from
> Turkis to utf-8 ?
> >
> > Thanks..
> >
> >
> > Erol
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
> 		
> ---------------------------------
> Yahoo! Mail Mobile
>  Take Yahoo! Mail with you! Check email on your
> mobile phone.



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: native2ascii

Posted by EROL TEZCAN <st...@yahoo.com>.
Yes, I tried processed files, but in jsp file chars seem wrong like &#65533;


Jana Parvanova <ja...@sirma.bg> wrote:
This should be Ok.
Have you tried using the processed files?


----- Original Message ----- 
From: "EROL TEZCAN" 
To: "sturts_apache_user sturts_apache_user" 
Sent: Friday, June 24, 2005 11:57 AM
Subject: native2ascii


> Hi,
>
> In my application, I want to create ApplicationResources_tr.properties
file for Turkish using native2ascii
>
> For this , I am using
>
> native2ascii -encoding UTF-8 ApplicationResources_tr_old.properties
ApplicationResources_tr.properties
>
> command from dos prompt.
>
> But this process encode the all Turkish chars in the source properties
files, as \ufffd .
>
> What should I do to convert right chars from Turkis to utf-8 ?
>
> Thanks..
>
>
> Erol
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


		
---------------------------------
Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.

Re: native2ascii

Posted by Jana Parvanova <ja...@sirma.bg>.
This should be Ok.
Have you tried using the processed files?


----- Original Message ----- 
From: "EROL TEZCAN" <st...@yahoo.com>
To: "sturts_apache_user sturts_apache_user" <us...@struts.apache.org>
Sent: Friday, June 24, 2005 11:57 AM
Subject: native2ascii


> Hi,
>
> In my application, I want to create ApplicationResources_tr.properties
file for Turkish  using native2ascii
>
> For this , I am  using
>
> native2ascii -encoding UTF-8   ApplicationResources_tr_old.properties
ApplicationResources_tr.properties
>
> command from dos prompt.
>
> But this process encode the all Turkish chars in the source properties
files, as  \ufffd .
>
> What should I do to convert right chars from Turkis to utf-8 ?
>
> Thanks..
>
>
> Erol
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org