Re: Character Encoding of textfield
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 off...@01softwaresolutions.eu | 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 jens.luenst...@ritz-schmidt.de: 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 c...@i4innovation.de: 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 jens.luenst...@ritz-schmidt.de 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de This email sent to c...@i4innovation.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/office%4001softwaresolutions.eu This email sent to off...@01softwaresolutions.eu ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Character Encoding of textfield
Hi Jens, hi list, I prefer to have such things in the code since they a) are absolutely essential and b) never change. Especially if you have a non-english app. I remember, we once corrupted the content of a large database, when an over-ambitious dev-op apprentice removed that property because he thought it was the default. :-( C.U.CW -- What are the three enemies of a programmer? Sunlight, oxygen, and the appalling roar of the birds. On 14.05.2014, at 07:50, Dipl.-Ing. Jens Lünstedt jens.luenst...@ritz-schmidt.de wrote: 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 c...@i4innovation.de: 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 jens.luenst...@ritz-schmidt.de 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de This email sent to c...@i4innovation.de signature.asc Description: Message signed with OpenPGP using GPGMail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Character Encoding of textfield
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 signature.asc Description: Message signed with OpenPGP using GPGMail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Character Encoding of textfield
On May 13, 2014, at 8:49 AM, Dipl.-Ing. Jens Lünstedt jens.luenst...@ritz-schmidt.de wrote: 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. Does the text survive the request/response loop w/out saving and subsequent retrieval from the database? Does the text survive the trip into the database? Can you see it correctly with a db admin GUI? Did JDBC connector change? New version? Did the JDBC connection string change? kib Some people never see the light, Till it shines through bullet holes. Tropic Moon, Burce Cockburn Klaus Berkling www.berkling.us | @kiberkli | Photography smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Character Encoding of textfield
On May 13, 2014, at 9:49 AM, Jens Lünstedt lu...@me.com wrote: the text is changed before it is send to the database. The changed characters are stored into the database and after the refresh of the table grid the changed character is shown. For example I have a textfield with an observer. - I enter an ö. - In the setText event I get the string ö. So you get double byte chars and it might be that it's not rendered properly. - This has nothing to do with the database because in my example I have no data exchange with the database. It is only between the gui and the app. Ah, lovely. PITA thing to track down. :-) I have not found the definitive answer to the UTF-8 encodings. Here are some more hints to check: In the Application() class, this probably didn't change for you, but anyways: this.setDefaultEncoding(UTF-8); WOMessage.setDefaultURLEncoding(UTF-8); ERXMessageEncoding.setDefaultEncoding(UTF-8); Check the header of the HTML page: meta http-equiv=content-type content=text/html; charset=utf-8 / Also check the form encoding, this is unusual and you can skip this if you added the meta tag above: form ... accept-charset=UTF-8 or Form : WOForm { ... accept-charset = UTF-8; } As I said, I haven't found the definitive method because there are several variables. Do you do a getBytes() anywhere? Always use a character map with getBytes(); Jens Am 13.05.2014 um 18:01 schrieb Klaus Berkling webobje...@berkling.us: On May 13, 2014, at 8:49 AM, Dipl.-Ing. Jens Lünstedt jens.luenst...@ritz-schmidt.de wrote: 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. Does the text survive the request/response loop w/out saving and subsequent retrieval from the database? Does the text survive the trip into the database? Can you see it correctly with a db admin GUI? Did JDBC connector change? New version? Did the JDBC connection string change? kib Some people never see the light, Till it shines through bullet holes. Tropic Moon, Burce Cockburn Klaus Berkling www.berkling.us | @kiberkli | Photography ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jens.luenstedt%40ritz-schmidt.de This email sent to jens.luenst...@ritz-schmidt.de kib Klaus Berkling www.berkling.us | @kiberkli | Photography smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Character Encoding of textfield
er.extensions.ERXApplication.DefaultEncoding=UTF-8 also look in ERXApplication.setDefaultEncoding, if you want to know where/what switches can screw things up http://wiki.wocommunity.org/display/documentation/UTF-8+Encoding+Tips On 13 May 2014 17:49, Dipl.-Ing. Jens Lünstedt jens.luenst...@ritz-schmidt.de 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/bastian.triller%40gmail.com This email sent to bastian.tril...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Character Encoding of textfield
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 jens.luenst...@ritz-schmidt.de 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de This email sent to c...@i4innovation.de signature.asc Description: Message signed with OpenPGP using GPGMail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Character Encoding of textfield
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 c...@i4innovation.de: 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 jens.luenst...@ritz-schmidt.de 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de This email sent to c...@i4innovation.de signature.asc Description: Message signed with OpenPGP using GPGMail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com