Hi,
I made a request to db via jQuery.post(). Generally it works as it should, but if I use german special characters, they are treated wrongly. For closer examinations, I set up a new file without db-access, only displaying regular and special chars.
I checked the characters after reading the value of text-input by alerting it. At this moment, it is correct!
The issue happens when jQuery gives the variables to POST (its the same with GET). The target-file can read only wrong characters from POST.
I crosschecked it by submitting data by a standard form. Now, the POST is read correctly.
Special chars, which are echoed explicitly (not questioned by POST) are given back correcty
- I defined charset it in html header and tried other charsets - always the same.
- Adding the accept-tag to inputbox didn't help.
- Redefining charset in target-file didn't help.
- Adding the charset-tag to the jQuery including script didn't help.
So, I think, the code is correct but there is an issue with the charset. And it is definitley at this moment, when transfering the variable to the POST.
Does anybody has an idea, where the problem could be and how to solve it?
kind rgerads
boulder_02