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 <[EMAIL PROTECTED]> 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:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]



---------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to