﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / InstantKB.NET 2.x / General Discussion  / Problem with translation to dutch : Invalid XML character / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 29 Aug 2008 00:22:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Problem with translation to dutch : Invalid XML character</title><link>http://community.instantasp.co.uk/Topic13893-74-1.aspx</link><description>Hi Ryan,&lt;/P&gt;&lt;P&gt;Thanks for the hint!&lt;/P&gt;&lt;P&gt;Simply saving the resources.xml with UTF-8 encoding in notepad did the trick!&lt;/P&gt;&lt;P&gt;If I run into more problems with translating I'll let you know.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Geert</description><pubDate>Mon, 12 May 2008 19:52:46 GMT</pubDate><dc:creator>Geert Veenstra</dc:creator></item><item><title>RE: Problem with translation to dutch : Invalid XML character</title><link>http://community.instantasp.co.uk/Topic13893-74-1.aspx</link><description>Hi Geert,&lt;P&gt;Hope your very well. Many thanks for your post. I think your our first user to create a language pack for InstantKB.NET :)&lt;/P&gt;&lt;P&gt;I believe i know what could be causing this problem. As our language files are XML based certain characters are not allowed and you need to provide the XML representation of that character. Also if you such certain characters with accents etc you will need to change the encoding type of the XML &amp;#100;ocument. You can read more about the encoding types in the link below. &lt;/P&gt;&lt;P&gt;One common problem that catches many customers is the ampersand (&amp;amp;) character. This character is not allowed in XML. For example the following string would throw an exception...&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;item name="KeyName"&amp;gt;Preview &amp;amp; Print&amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;The correct way to represent this within XML would be...&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;item name="KeyName"&amp;gt;Preview &amp;amp;amp; Print&amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;You can find a complete list of special characters within our forum documentation. As InstantKB.NET uses our localization code within the InstantASP.Common framework similar to the forum this information does apply to both. You can read more on this under the "&lt;STRONG&gt;XML Encoding &amp;amp; Special Characters&lt;/STRONG&gt;" section at the link below...&lt;/P&gt;&lt;P&gt;&lt;a target="_blank" href="http://docs.instantasp.co.uk/instantforum/creatingalanguagepack.html" target=_blank&gt;http://docs.instantasp.co.uk/instantforum/creatingalanguagepack.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For your problem i would suggest you first look at the encoding type of the XML &amp;#100;ocument. &lt;/P&gt;&lt;P&gt;[quote]XML documents may contain foreign characters, like Norwegian æ ø å , or French ê è é. To ensure the XML parser understands these characters, you should save your XML resource files as Unicode. In XML, the character encoding is optional and can be given in the XML declaration in the first line of the document, like this:&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;&lt;/P&gt;&lt;P&gt;For most standard character sets we would suggest utf-8. The XML processor can recognize the following character set names: &lt;/P&gt;&lt;P&gt;UTF-8 &lt;BR&gt;UTF-16 &lt;BR&gt;ISO-10646-UCS-2 &lt;BR&gt;ISO-10646-UCS-4 &lt;BR&gt;ISO-8859-1 to -9 &lt;BR&gt;ISO-8859-11 &lt;BR&gt;TIS-620 &lt;BR&gt;ISO-2022-JP &lt;BR&gt;Shift-JIS&lt;BR&gt;EUC-JP &lt;/P&gt;&lt;P&gt;Examples of encoding declarations:&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="EUC-JP"?&amp;gt; (for Japanese character)&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="iso-8859-11"?&amp;gt; (for Thai character )&lt;/P&gt;&lt;P&gt;If no encoding is given XML defaults to UTF-8. If you try to load an XML based resource file into Internet Explorer, you may one of the following error messages indicating encoding problems:[/quote]&lt;/P&gt;&lt;P&gt;If you attach your resources.xml file here i'll happily take a quick look to see what could be causing the problem.</description><pubDate>Mon, 12 May 2008 18:05:36 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>Problem with translation to dutch : Invalid XML character</title><link>http://community.instantasp.co.uk/Topic13893-74-1.aspx</link><description>Hi,&lt;P&gt;I have started to translate the software but ran into a problem with certain characters&lt;/P&gt;&lt;P&gt;I have a problem with certain characters in the globalization xml file.&lt;/P&gt;&lt;P&gt;here is one example from Resources.xml:&lt;BR&gt;&amp;lt;item name="Button_EditCategories"&amp;gt;Categoriën bewerken&amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;The problem here is the character  ë (but there are more characters that are causing this problem such as é, è )&lt;/P&gt;&lt;P&gt;It causes the following error:&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;Detailed error information follows:&lt;BR&gt;&lt;BR&gt;Date and Time:         9-5-2008 22:44:28&lt;BR&gt;Machine Name:          SERVICES&lt;BR&gt;Process User:          NT AUTHORITY\NETWORK SERVICE&lt;BR&gt;Remote User:           &lt;BR&gt;Remote Address:        24.132.235.124&lt;BR&gt;Remote Host:           24.132.235.124&lt;BR&gt;URL:                   http://services.schmit.nl/KB20/Default.aspx&lt;BR&gt;&lt;BR&gt;NET Runtime version:   2.0.50727.42&lt;BR&gt;Application Domain:    /LM/W3SVC/1/Root/KB20-1-128548391496250000&lt;BR&gt;Assembly Codebase:     C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll&lt;BR&gt;Assembly Full Name:    System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&lt;BR&gt;Assembly Version:      2.0.0.0&lt;BR&gt;Assembly Build Date:   16-6-2006 21:10:43&lt;BR&gt;&lt;BR&gt;Exception Type:        System.Xml.XmlException&lt;BR&gt;Exception Message:     Invalid character in the given encoding. Line 208, position 45.&lt;BR&gt;Exception Source:      System.Xml&lt;BR&gt;Exception Target Site: Throw&lt;BR&gt;&lt;/P&gt;&lt;P&gt;[/code]</description><pubDate>Fri, 09 May 2008 21:55:51 GMT</pubDate><dc:creator>Geert Veenstra</dc:creator></item></channel></rss>