bad character in XML

Stimulsoft Reports.NET discussion
Post Reply
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

bad character in XML

Post by dikan »

I made report and I it is using XML data and XSD dataset. On my computer during report editing I receive this error:

Connection 'Expert': Invalid character in the given encoding. Line 1214, position 41.

but report is generated and can be viewed with all data. This character is EASTEURPOEAN Č.
If I put report on customer computer with only generated XML from my applicaton there is no data in report. Report is shown but no data. I am using WIN1250 charset. Is there some trick to tell report viewer to use proper chareset?

Best regards,

dikan
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: bad character in XML

Post by HighAley »

Hello, dikan.

Please, check what code page is set in the XML file. If it is a UTF-8 and you write there text in Windows-1250 code page, you will get a error.
If the code page in XML file is right. Please, send us this file for analysis.

Thank you.
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: bad character in XML

Post by dikan »

I included in my XML next definition

<?xml version="1.0" encoding="iso-8859-2" ?>

and now everything goes smooth.


Thank you.

dikan
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: bad character in XML

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.
Post Reply