Problem with special chars in angularjs (utf 8)

158 views
Skip to first unread message

Felix Monschein

unread,
Apr 25, 2014, 5:37:13 PM4/25/14
to ang...@googlegroups.com
Special Chars displayed incorrectly.
I use the settings below.


directive:
$scope.string = "äöü";

template:
{{string}}

.htaccess:

AddDefaultCharset UTF-8


index.html:

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="de" ng-app="myApp">

<head>

 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

</head>

</html>


Reply all
Reply to author
Forward
0 new messages