IIS XML inscribing appears to be incorrect

We are relocating our internet application from Apache 2.0 to IIS 7.

Everyhing is great with UTF - 8 encoding, yet simply one point.

There is a flash flick in the web page that reviews an xml web content (dynamically created by php) which if offered by Apache appropriately presents french - details personalities (èé, as an example), while if the very same web content is offered by IIS 7 those personalities are messed up.

" Hm, server encoding", I assumed.

Well I place in my manuscript the line

header('Content-Type: text/xml; charset=utf-8');

prior to anything else ; the XML web content is appropriately priced estimate with UTF - 8 encoding:

$str = '<?xml version="1.0" encoding="UTF-8"?>';

and also the encoding of underlying MySQL data source and also tables is utf8 - basic - ci.

Afterwards absolutely nothing adjustments : personalities like èé are still messed up if the XML is offered via apache.

What am I doing incorrect?

0
2019-05-13 04:00:27
Source Share
Answers: 1

We had the very same trouble with XML created with Classic asp. The workaround that functioned ideal for us was to create a personalized HTTP trainer for XML documents ...

Its something you can do in your web.config documents:

    <handlers>
  <remove name="ASPClassic" />
  <add name="XMLasASPClassic" path="*.xml" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" />
  <add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" />
</handlers>

basically what it does is treat.xml documents as.asp documents. suggesting that < % %> and also all asp code operates in them. The good idea is FLash still sees this as typical xml and also your site visitors can not identify what you are making use of to create the xml submits dynamically.

Additionally see to it you examine your manuscript first by seeing to it flash can sustain a real xml documents ...

I make certain you can make use of the above strategy with PHP ... StackOverflow might have some even more details on that particular ...

0
2019-05-17 04:07:04
Source