German Umlaut Problem in Forms

118 views
Skip to first unread message

Christian

unread,
Sep 2, 2015, 2:36:57 AM9/2/15
to Lucee
Hello.

Got a new problem with german umlauts. Its the same like list time (same server, same settings, ...)
I use UTF-8 in lucee and in my files and even in apache and Application.cfc
File encoding is also set to UTF-8

If I insert a "Ö" or what ever umlaut, the string is "translated" into a "?"

Any ideas?

Regards

Adrian Lynch

unread,
Sep 2, 2015, 2:43:30 AM9/2/15
to lu...@googlegroups.com
Where do you see it as a '?'?

Adrian

(Jasper Fforde would love that!)

--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/60938d8f-06c3-4035-9fe2-47f6f21a127c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian

unread,
Sep 2, 2015, 3:22:11 AM9/2/15
to Lucee
I enabled debugging and there is the "form scoop"

Inputname
string?

Incorrect string value: '\xEF\xBF\xBD' for column 'Inputname' at row 1


Bilal

unread,
Sep 3, 2015, 8:25:43 AM9/3/15
to Lucee
Christian:
Can you provide details on your environment please.
OS, webserver?
How did you install?

Thanks,
Bilal

Michael Offner

unread,
Sep 4, 2015, 3:54:11 AM9/4/15
to lucee
Hi Christian

To get this right, you pass "ö" in a form to the server and then you see "?" in the dump of the form scope?
what charset your application.cfc and other templates are using only matters for literal string that are written to the template itself, for example if your template would look like this:

Hallöchen #form.name#

Only in this case the "template charset" matters only for "Hallöchen" but not for "form.name", let's say we call that template with <input name="name" value="Özgür"> what matters for "form.name" is in that case the web charset set in the admin or the application.cfc and what you have set with the function "setEncoding".

Please have in mind that "UTF-8" is not the "EierlegendeWollmilchsau", important is to use the right charset and that is maybe not UTF-8.

So what charset is used by the client to encode the form scope?
best do some tests by setting "setEncoding" for the form scope in the application.cfc, this is the fastest way to find out what is going on.

Micha



--
Reply all
Reply to author
Forward
0 new messages