-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ros,
ros wrote: > I have to read form post in windows-1257 encoding. > The request field AAA should be PAĻIV but it is PA?V > > How I can read special characters like Ļ Ā Ī and others? Where are you seeing the string "PA?V" If you are seeing it in a logfile or terminal window, the character set might not be set appropriately, and the character you are seeing might actually be right. I had this same problem recently... my xterms were not set to UTF-8, but everything (including the database) was set to UTF-8. Many non-ASCII characters showed up as question marks. After setting the terminals to UTF-8, the correct characters were being displayed. On the other hand, you should check the character encoding of the request itself. If your page is being rendered in the browser using Windows-1257, then your browser should be sending the request in the same character set. It's possible that your browser is not correctly reporting the character set used in the HTTP POST. If that's the case, you can set the request's character encoding before reading any of the request parameters. When using Struts, this is often not possible since Struts sometimes accesses request parameters before any of your code runs. In that case, you can use a character encoding filter that has been written for this purpose. It's called CharacterEncodingFilter and you can find it in Spring or all by itself out on the web. Remember that using CharacterEncodingFilter is only appropriate when all of your pages are being served using the same character set. I highly recommend using UTF-8 for everything if you need non-ASCII characters. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF4ZSl9CaO5/Lv0PARAmXtAKCpm8sDwZKIUCsBLUWxB/4L2c/rKgCeKHe0 qbe+nuebl3KbyT5A2+mQ85Q= =+QL1 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]