ngModel and Umlaute

903 views
Skip to first unread message

Sebastian Sebald

unread,
Aug 1, 2013, 8:42:23 AM8/1/13
to ang...@googlegroups.com
Hi everybody,

I ran into a problem today with German umlauts. If a user types in umlaute in input field the encoding is messed up in the $resource/JSON. I am not quite sure which encoding is used.
E.g. If a user typed "Äpfel" the JSON will be "Äpfel"

Did anyone run into a smiliar problem or know how to fix this?

Cheers,

Sebastian

Dävu Biglr

unread,
Aug 26, 2013, 10:41:24 AM8/26/13
to ang...@googlegroups.com
Hi Sebastian

I ran into a similar problem. A solution (but it doesn't work for me) is to set the <meta charset="utf-8"> tag in the header... Maybe this helps you out.

Cheers

Biglr

Sebastian Sebald

unread,
Aug 27, 2013, 2:56:32 AM8/27/13
to ang...@googlegroups.com
Already had that :) Didn't help me either.


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/oGvKcarqXdo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Lutz Epperlein

unread,
Aug 27, 2013, 11:03:29 AM8/27/13
to ang...@googlegroups.com
What you see ("Äpfel") is probably UTF-8. What tool do you use the capture the content of Resource object?
I think, you have to adjust your backend to process utf8-encoded strings. The page  itself  should be encoded in UTF-8. In the most browsers you can check the present encoding in the appropriate menu, better is to investigate the request and the response headers using the developing tools of your browser.
Reply all
Reply to author
Forward
0 new messages