Forum How do I...?

Known issues with german umlaute?

peri
Prince throws errors when i use the german Umlaute ä, ö, ü, ß,... in the HTML source.

Using HTML entities solves the problem for static text, but when parsed as variable values, the Umlaute cause the error again.
I varied the coding of the text file (ANSI, UTF-8, ISO 8859-1 and a few others), but it did not make a difference.

Unfortunately i cannot give you any further information. My developer is on holiday and offline.

Is there anything to bear in mind when using Umlaute? Any hint would be useful. Thanks for your support!
Peter
mikeday
When using HTML, ensure that you declare the character encoding early in the <head> of the document, like this:

<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
peri
The following code at the beginning of the HTML code, together with saving the document in ISO-8859-1 code, solved the problem.

<?xml version="1.0" encoding="ISO-8859-1"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

...<head>...