Jump to content
Server Maintenance This Week. ×

Text characters causing import errors


Carl Smith

This topic is 5845 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Here is the source xml file.

Curiosly when viewing this in WordPad the umlaut in the surname is visible, but when opening it Dreamweaver 2004 the umlaut is not visible. Which is more confusing!

Also when amending the xml file first row from;

<?xml version="1.0" encoding="utf-8"?>

to read

<?xml version="1.0"?>

the issue seems to get resolved.

My source file is an edited version based on what I usually receive from a third party (e.g. data changed but format is original)

Link to comment
Share on other sites

I don't see a file, but what you said more or less supports my initial suspicion. It seems that while the document declares "utf-8", it doesn't actually conform to it. You should alert your data provider to this problem. Otherwise you'll have to either modify the source xml every time before importing it, or find a way to transliterate the problematic characters during or after import.

Link to comment
Share on other sites

  • 5 months later...

Hi comment

I know it's some time ago when you answered my query, but I'm hoping you can look at this xml file, which I should have sent earlier, in reference to this subject. I requested the third party to remove the reference to encoding.

My problem is becoming more prevalent as more orders are coming from Europe and elsewhere and ideally I need to automate the import process!

Thanking you for your assistance in advance.

orders.zip

Link to comment
Share on other sites

AFAICT, the problem is caused not by any specific characters, but rather by undefined character entities, such as "auml" or "aring". These are not valid XML entities, and whoever uses them must make their definition avaiable to the XML parser - see:

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML

Edited by Guest
Link to comment
Share on other sites

This topic is 5845 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.