Jump to content
Server Maintenance This Week. ×

Export XML has invalid/corrupted characters


Otis

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

Recommended Posts

I'm using FileMaker 11 Advanced, and I'm exporting data as an XML file.

This exports fine, but on certain records I have foreign characters that are exported and tripping up the ultimate XML import into another application.

I'm trying to find a way to "clean up" the text in FileMaker so that these foreign characters don't corrupt the XML file.

Some of these problematic characters appear in FileMaker to be:

Ê

¥

...and so on.

Is there a way to strip out foreign characters in FileMaker before generating the XML file?

Or perhaps an program/online site that will allow one to convert an XML file with these types of problematic characters to strip them out?

I'd like a solution from the filemaker side of things, but at this point I'd take any help I can get. :)

Please help, thanks.

Link to comment
Share on other sites

Can you update your profile, it indicates you're using FMP 6.

Is the problem with the "other" program not accepting the foreign characters? If it is I'd be talking to its developers and getting them to update to the 20th Century standards. It should be able to handle Unicode.

You could create an XSLT style sheet to replace the foreign characters with others, but you'll have to map them all and work out what the translation needs to be. For instance, what should ¥ be replaced with? (It may well be that something already exists to do this so search around.)

As a quick fix you could open the program in a text editor (something like Word would probably not be a good choice because it'll want to add formatting to the file) and find/replace all the foreign characters manually.

Here in Australia we deal with foreign characters with offshore processing. (local politics joke)

Link to comment
Share on other sites

Vaughan, thanks for your reply.

I just updated my profile by the way.

The problem is that I don't know the exact characters to replace. There are numerous foreign characters that are causing an XML import crash, some I don't even know are causing problems. So I can't do a proper find/replace.

When I run the XML file through a parser, like Opera web browser, I don't get any errors. So it's likely as you mentioned a unicode issue with the other app importing the XML file. I was just hoping in FileMaker I could force an XML export to Latin Encoding. However, in the XML export options for FileMaker, I see the "Output Character Set" as always dimmed and not selectable.

I could check with the other app and try to contact them to take unicode, but I was just hoping for some sort of "Latin to Unicode XML Converter" or something from within FileMaker to do the trick.

I'm a bit of a newbie when it comes to XML, so I hope I'm making sense with my dilemma. Thanks.

I

Link to comment
Share on other sites

Ahhh I have this setup as an automated script, so when I manually go to

File > Export > XML

FMPXMLRESULT

I see the checkbox for "Use XSL Style Sheet".

However, what type of file or HTTP Request should I use to make the encoding forced to Latin? Thanks.

Link to comment
Share on other sites

This topic is 5039 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.