On Sep 4, 2008, at 10:44 AM, Rob Lockstone wrote:

>>
>> Do you have the <character-encoding> or request.setCharacterEncoding
>> set?
>>
>> The servlet spec defaults are iso-8859-1, which Resin can override by
>> either of those methods.
>
> Other than iso-8859-1 being the spec, is there any reason not to use
> utf-8, other than, perhaps, a little more overhead?

utf-8 is always the correct choice for the default encoding.

iso-8859-1 is just a legacy problem when the initial spec writers  
don't think about internationalization.  php has the same problem.

-- Scott 

>
>
> Rob
>
>>
>>
>> -- Scott
>>
>>>
>>>
>>> Riccardo Cohen wrote:
>>>> Hello
>>>> I run resin 3.2 on macosx 10.5 and found the way to build a 100%
>>>> utf-8
>>>> application. But I recently found a new problem.
>>>>
>>>> When my form is with method="GET", I have all non-ascii characters
>>>> correctly encoded in utf8.
>>>> But if I change to method="POST", then all non-ascii chars are  
>>>> badly
>>>> encoded.
>>>>
>>>> The application can be downloaded here to test this :
>>>> http://www.architectedulogiciel.fr/download/testutf8.zip
>>>> (the resin.xml is in .administration folder, and the database
>>>> script is
>>>> in database.sql file)
>>>>
>>>> Thanks for any help.
>>>>
>>>>
>>>
>>> -- 
>>> Riccardo Cohen
>>> Architecte du Logiciel
>>> http://www.architectedulogiciel.fr
>>> +33 (0)6.09.83.64.49
>>>
>>>
>>>
>>> _______________________________________________
>>> resin-interest mailing list
>>> resin-interest@caucho.com
>>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>
>>
>>
>> _______________________________________________
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to