How to convert special characters in utf-8 format when creating an xml file in ColdFusion

I am using ColdFusion 5 and trying to convert special characters to utf-8 when creating xml file

I use xmlFormat () for this, but when I parse the xml file, it gives this error:

Failed to process xml:

mountainhomes / xdeadline_listings_wsj.xml: 539: parser error: input does not match UTF-8, specify the encoding!

Byte: 0x96 0x31 0x28 0x32

5BA, open kitchen, dining and family area with fp gas magazine. At garage level 2 level

     & & n n & n bsp;    ^ ^ ^ ^

+3
source share
1

UDF, Demoronize (http://www.cflib.org/index.cfm?event=page.udfbyid&udfid=725), . dpaste.org(Raw View), , ascii Demoronize . , UDF, , ..

text = Replace(text, Chr(96), "'", "All");
text = Replace(text, Chr(198), "'", "All");
text = Replace(text, Chr(8216), "'", "All");
text = Replace(text, Chr(8217), "'", "All");
text = Replace(text, Chr(8220), """", "All");
text = Replace(text, Chr(8221), """", "All");
text = Replace(text, Chr(8230), "...", "All");
text = Replace(text, Chr(244), """", "All");
text = Replace(text, Chr(246), """", "All");
text = Replace(text, Chr(8211), "-", "All");
0

Source: https://habr.com/ru/post/1780910/


All Articles