DaCh
DaCh

Reputation: 931

angular fail using letters ø, æ, å, maybe something about i18n

i'm having some problem with my angular.

I can't make it use the letters "æ,ø,å" I tried installing I18N, but doesn't seems to do anything. when i navigate to a page url which contains one of the letters, it's convert it to something like this

Ops%EF%BF%BDtning

And it should be something like

Opsætning

And the same thing happen when i use it on the pages. like shown here enter image description here

I been using angular a long time, but this problem have never happen for me before. can anyone share some wisdom. Im sure it's something stupid little mistake i just can't see my self.

anyway, thanks for your time,

Upvotes: 0

Views: 797

Answers (1)

sjokkogutten
sjokkogutten

Reputation: 2095

  • Make sure to set the right charset, in your case utf-8
meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1' />
  • You might have to convert your files to use utf-8 (Notepad++ has a 'Convert to UTF-8' function)

  • Alternatively you could use HTML special character codes for: æ ('&aelig';), ø ('&oslash';), å ('&aring';)

You can read more about the use of special characters in HTML, XML and JS here

Upvotes: 1

Related Questions