Questions tagged [xml-encoding]
46 questions
0
votes
1 answer
How to make System.Web XmlSerializer serializer encode quotes c#
I have the following test case:
[TestMethod]
public void SimpleEncodingTest()
{
var report = new SimpleReport{Title = @"[quote]""[/quote] [apo]'[/apo] [smaller]<[/smaller] [bigger]>[/bigger] [and]&[/and]" };
…

user1531921
- 1,372
- 4
- 18
- 36
0
votes
1 answer
Whats the correct key/value Syntax to convert this Array with Symfony/XmlEncoder?
im building my request data as an array structure and want to use the symfony XmlEncoder to encode my Array to XML.
so i guess i got the fundamental part right, it looks like that for example:
$request_object = [
"acc-id" =>…

netzding
- 772
- 4
- 21
0
votes
0 answers
XMLTV spanish characters not appearing correctly
I have been working with XMLTV and I have found that Spanish characters are not appearing in the EPG correctly, I believe this will be an issue with the xml encoding but I have tested this with both:

Jam12345
- 133
- 1
- 1
- 7
0
votes
0 answers
How to decode special characters using XMLDecoder in java
My string contains special characters (eg: Ã?tøkiligar) and when decoding it using XMLDecoder it throws ArrayIndexOutOfBoundsException. Is there anyway to change the decoding format to another format(ISO-8859-1) than…

Amy
- 23
- 10
0
votes
0 answers
How do I decode Unicode HTML Entities for XML in Java
String htmlToXml = "
Lorem dorum 漢字 is >
";
String xmlString = unescapeUnicodeHtml(htmlToXml);
assert "é
Lorem dorum 漢字 is >
".equals(xmlString);
Is there a library that I can use to implement…é

IcedDante
- 6,145
- 12
- 57
- 100
0
votes
0 answers
Handling US-ASCII encoded XML with unsupported entity reference
This question is the continuation of this page
PROCESS: The process involved, Opening XML file and do some modification in specific nodes and save it back to another location.
PROBLEM FACING: While Saving after some modifications in XML, unsupported…

Karthick Gunasekaran
- 2,697
- 1
- 15
- 25
0
votes
1 answer
Saving XML file from one location to another location using XML DOCUMENT
While saving the existing XML to new location, entities escaped from the content and replaced with Question Mark
See the snaps below entity ‐ (- as Hex) present while reading but its replaced with question mark after saving to another…

Karthick Gunasekaran
- 2,697
- 1
- 15
- 25
0
votes
1 answer
Set XmlEncoding to Dom Document in Java
I need set the XmlEncoding (UTF-8) in a Dom Document object without use a Transformer with his "setOutputProperty(OutputKeys.ENCODING, "UTF-8")" method.
I don't want obtain the XML string using the Transform object because I am using a Xades…

josepmra
- 617
- 9
- 25
0
votes
1 answer
passing doubles quotes in xml
I am working on a project where I am saving my data in xml format.I am unable to save double quotes in my data.I have tried replacing double quotes with " but it didn't worked.Please suggest how to achieve this.
Following is the xml data which I am…

rupinder18
- 795
- 1
- 18
- 43
0
votes
1 answer
Setting xml encoding attribute in prolog using .NET HttpClient
Does anyone know if it's possible to set the encoding attr in the prolog when using C# HttpClient's PostAsXmlAsync method.
When I look at the requests in Fiddler I can see the encoding in the content-type http header, but I need in the prolog like…

Ols1
- 321
- 3
- 15
0
votes
0 answers
XML issue with one field - field does not have blank space (maybe tab or problematic encoding?)
I have XML file and within it one field with value from two words
for example:
INTERNET WEB
When this is imported in some database this value is not saved like INTERNET WEB although on the first sight it looks exactly the same value…

Veljko
- 1,708
- 12
- 40
- 80
0
votes
0 answers
How to keep XmlWriterTraceListener from xml-encoding characters in the message
I am trying to use System.Diagnostics.XmlWriterTraceListener to log to a local file. I start by creating a source and adding a new XmlWriterTraceListener to it, like so:
public class Logger
{
const string LOG_ERR_FMT =…

FireWingLead
- 439
- 6
- 19
0
votes
1 answer
Format string for XML
I am writing some code to send an XML document to a Servlet. For one of the XML tag fields, I need to fill it with a string that is retrieved from an external file.
I have found a couple of external files that contain some < and > characters. The…

user2985419
- 553
- 3
- 9
- 23
0
votes
1 answer
XDocument fails loading on ÅÄÖ chars (VB.net)
I have this code for looping reports in a XML file:
Dim xmlr As XDocument = XDocument.Load("Myfile.xml")
For Each report As XElement In xmlr.Descendants("Report")
'Do stuff with report values
Next
this works, but i get an error if the file…

gubbfett
- 2,157
- 6
- 32
- 54
-1
votes
1 answer
Rightmove XML Entities
We have a site which provides data to Rightmove via an XML file. However, we're seeing a small issue with special characters being displayed with odd symbols. For example, when smart quotes are pasted into our data source (Drupal CMS) the characters…

0Neji
- 1,038
- 1
- 14
- 36