ASKER
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:resx="resxUri">
<xsl:output indent="yes" />
<xsl:output method="html"/>
<xsl:param name="locale"/>
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
</xsl:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p>
<xsl:value-of select="resx:GetTranslatedValue('GreetingsFromMyCompany', $locale)"/>
</p>
<p>
<xsl:value-of select="resx:GetTranslatedValue('YourColleague', $locale)"/>
<xsl:text> </xsl:text>
<xsl:value-of select="emailAColleagueEntity/yourName"/>
<xsl:value-of select="resx:GetTranslatedValue('EmailAColleaguePar1', $locale)"/>
</p>
<p>
<xsl:value-of select="emailAColleagueEntity/pageTitle"/>
</p>
<p>
<a>
<xsl:attribute name="href">
<xsl:value-of select="emailAColleagueEntity/pageLink"/>
</xsl:attribute>
<xsl:value-of select="emailAColleagueEntity/pageLink"/>
</a>
</p>
<p>
<xsl:value-of select="emailAColleagueEntity/comment"/>
</p>
<p>
<xsl:value-of select="resx:GetTranslatedValue('EmailAColleaguePar2', $locale)"/>
</p>
<p>
<xsl:value-of select="resx:GetTranslatedValue('PleaseDoNotReplyNotAMonitoredAccount', $locale)"/>
</p>
<p>
<xsl:value-of select="resx:GetTranslatedValue('AboutMyCompany', $locale)"/>
<xsl:value-of select="resx:GetTranslatedValue('CombiningUnparalleled', $locale)"/>
<xsl:value-of select="resx:GetTranslatedValue('MyCompanyCollaborates', $locale)"/>
<xsl:value-of select="resx:GetTranslatedValue('ItsHompageIs', $locale)"/>
<xsl:value-of select="resx:GetTranslatedValue('EmailConfirmSiteName', $locale)"/>
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
Dim isoBytes As Byte() = System.Text.Encoding.GetEncoding("ISO-8859-1").GetBytes("Questo messaggio è la conferma")
Dim utfBytes As Byte() = System.Text.Encoding.Convert(System.Text.Encoding.GetEncoding("ISO-8859-1"), System.Text.Encoding.UTF8, isoBytes)
Dim msg As String = System.Text.Encoding.UTF8.GetString(isoBytes)
MsgBox(msg)
ASKER
example 1
---------
<root>
<foo>é</foo>
<euro>€</euro>
</root>
example 2
---------
<?xml version="1.0" encoding="iso-8859-1"?>
<bar>
<foo>é</foo>
</bar>
example 3
---------
<foo>€</foo>
example 4
---------
<?xml version="1.0" encoding="iso-8859-1"?>
<bar>
<foo>é</foo>
<foo>€</foo>
</bar>
Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.
TRUSTED BY
So somewhere in your chain you pass in a UTF-8 encoded XML stating it is ISO-8859-1
It could be that the source is allready corrupt.
Are you sure that the source XML is really ISO-8859-1?
you can check that by opening the file in a binary text editor and see if the character is a double byte.
If it is, an UTF-8 snippet has been introduced in your source and you need to fix that,
OR the encoding of the XML is wrong
It helps viewing your source in an XML editor to see if the encoding is right (www.oxygenxml.com is a good choice)
Is this "questo messagio..."
introduced in the XSLT?
Your XSLT has an encoding iso-8859-1 as well,
it could be that you pasted the wrong encoding to your XSLT, maybe start by setting that to UTF-8
Encoding issues are tricky, if the above doesn't help you yet, you need to give us more information (maybe attach source and XSLT and explain how you run the XSLT)