Answer the question
In order to leave comments, you need to log in
Why after xslt-conversion in Cyrillic attributes in hexadecimal form?
Actually the question is in the title.
What is available.
The source code responsible for the conversion is the same, the difference is only in the servers.
Incorrect attributes:
<meta name="keywords" content="доста…
view-source:http://www.svetola.ru/
PHP Version => 5.2.10
Correct:
<meta name="keywords" content="delivery, flowers,...
view-source:http://www.spasibo.biz/
PHP Version => 5.3.6-13ubuntu3.2
Moreover the site svetola.ru is deployed on the test server, and everything is fine on it, i.e. the files are the same.What
could be the problem?
PS
Found a similar problem: issues.apache.org/jira/browse/XALANC-665
But he made no progress in his decision.
Answer the question
In order to leave comments, you need to log in
In my case, the solution was to specify the encoding after importing the files
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../Custom/site/media/xsl/default.xsl"/>
<xsl:import href="Page.xsl"/>
<xsl:output encoding="UTF-8" />
</xsl:stylesheet>
<xsl:output
method="xml"
version="1.0"
encoding="UTF-8"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="yes"
omit-xml-declaration="yes"
/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question