Re: Character Encoding of textfield
Re: Character Encoding of textfield
- Subject: Re: Character Encoding of textfield
- From: "Thomas Grass (01SoftwareSolutions)" <email@hidden>
- Date: Wed, 14 May 2014 13:35:34 +0200
Hi Jens,
i had the same problem yesterday! Your solution works for me also fine! :-)
Thomas
--
Thomas Grass, B.Sc. | 01SoftwareSolutions
+49 (89) 41 41 41 03-0
email@hidden | www.01softwaresolutions.eu
Lichtenbergstraße 8 | D-85748 Garching b München
Am 14.05.2014 um 07:50 schrieb Dipl.-Ing. Jens Lünstedt <email@hidden>:
> Good morning Christoph,
> I use
> er.extensions.ERXApplication.DefaultEncoding=UTF-8
> er.extensions.ERXApplication.DefaultMessageEncoding=UTF-8
> in the Properties file and all is fine now.
>
> For file upload I use the AjaxFileUpload. That looks nicer.
>
> Grüße nach Bonn
> Jens
>
>
>
> Am 14.05.2014 um 01:16 schrieb CHRISTOPH WICK | i4innovation GmbH, Bonn <email@hidden>:
>
>> Hi Jens,
>>
>> does your wo-form set 'enctype="multipart/form-data"' ? (AFAIK it is necessary, if you are using WOFileUpload)
>>
>> If so, try to use the following in your Application's constructor:
>>
>> public class Application extends ERXApplication {
>> ...
>> public Application() {
>> ...
>> WOMessage.setDefaultEncoding("UTF-8");
>> WOMessage.setDefaultURLEncoding("UTF-8");
>> ERXMessageEncoding.setDefaultEncoding("UTF8");
>> ERXMessageEncoding.setDefaultEncodingForAllLanguages("UTF8");
>> ...
>> }
>> ...
>> }
>>
>> I also had the problem with umlauts and this helped me.
>>
>> C.U.CW
>> --
>> What are the three enemies of a programmer? Sunlight, oxygen, and the appalling roar of the birds.
>>
>> On 13.05.2014, at 17:49, Dipl.-Ing. Jens Lünstedt <email@hidden> wrote:
>>
>>> Hello,
>>> I have a strange problem. Today I noticed in one of my apps that all german characters like öäü are changed. So when I get the event that the text of that field is changed the text is already changed to something not readable. The last time some days ago I tested that in the app all was ok. I checked the properties of the project in Eclipse and all encoding is on UTF-8. I didn't changed the properties file of the project. I run another application and all is fine. I moved the project to another machine and it was the same. I used another fresh database but it doesn't help. I tested another browser, I cleaned the project and I rebooted the machine. Nothing helped.
>>>
>>> So I'm sure it has something to do with my project but where? In the project preferences I use UTF-8 encoding. I think it must be on the way from the browser to the event in my app, perhaps in the WO framework.
>>>
>>> Has anyone an idea?
>>>
>>> Thanks
>>>
>>> Jens
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden