• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HTML DOM problem

puffpio

Golden Member
I have an input textbox and I fill with umlauted characters
ööö

When I do a
document.getElementByID("myinputtextbox").value;
to send to a webservice

those ööö comes out as %F6%F6%F6
...

what encoding is that? How can I get my umlauted letters back?
When I fill the input text box with other language characters (japanese, korean) it comes back ok

ie:
???/??? turns into %uD55C%uAD6D%uC5B4/%uC870%uC120%uB9D0
which my webservice can understand
 
my webservice that is consuming these strings is based in .net
and when I debug and add a watch on the string that comes in, the korean chars come in fine, but the german umlaut does not. they show up as square boxes or questions marks

I have a feeling if they were converted to %u00F6 then they would work....
 
no, it's being filled w/ sentences from various languages
english works, as do asian languages
but umlauted german letters end up as unrecognized characters

I think it may have something to do w/ teh browser considering it %F6 instead of %u00F6 and .Net doesn't understand
 
Got my solution

I took a look at the AJAX framework I was using, and parameters being encoded and sent over were wrapped in javascript's escape() function...which I found out doesn't handle unicode all that well. I swapped it with encodeURIComponent() and all is well
 
Back
Top