Posts: 889
Joined: Jan 2008
Reputation:
11
I tried exporting my library to an xml file and noticed that in the xml some characters were all garbled. For example:
Alejandro González Iñárritu
turns into
Alejandro González Iñárritu
Is this a known limitation or is it expected that the NFO file exactly mirrors the library info?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
It's exported as utf8.
Your nfo files probably aren't utf8.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Did you add the utf8 declaration to the top of the xml nfo file?
If not, it'll be read using the string charset.
Cheers,
Jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Have you tried opening the XML in something that is actually XML aware, such as a webbrowser? The XML declaration of the encoding means that the text file that contains the XML does not require to have any "utf8 markers" at the start of it or anything.
Perhaps you could upload an example xml file where you think things are going wrong so that others can see what you are seeing?
Cheers,
Jonathan
Posts: 889
Joined: Jan 2008
Reputation:
11
Can somebody else try confirming this? Just create a 21 grams file, scrape it, export library, and check the videodb.xml file for the director. Assuming others are getting the same thing I'll log a Trac ticket about it.
Posts: 4,997
Joined: May 2004
Reputation:
12
<credits>Guillermo Arriaga</credits>
<director>Alejandro González Iñárritu</director>
<premiered></premiered>
Seems to have worked fine.
Posts: 889
Joined: Jan 2008
Reputation:
11
Hmm... what platform did you try it on althekiller?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
So that we understand the problem completely:
You have nfo files that you previously generated from a video library export, which I presume show correctly for you within the nfo file. Do they also show correctly for you within XBMC? It's only when you export this video library (generated from your nfo files) that you get the garbled characters?
Can you please post your 21 grams nfo file. Does it have the utf8 declaration up the top of it?
Thanks,
Jonathan
Posts: 889
Joined: Jan 2008
Reputation:
11
I'm sorry I mentioned NFO files, the problem has nothing to do with them. My problem is:
I have a library database created by the IMDB scraper, and the special characters show correctly within XBMC. When I export this library to XML using the XBMC "Export Library" function in the System -> Video -> Library menu, the resulting XML file has garbled special characters. I posted my videodb.xml file above, which contains hundreds of instances of garbled characters. I have been using as an example the director of 21 grams, which you can search for in the posted file.
The NFO confusion is only because I discovered the problem while attempting to use the data from my videodb.xml file to generate NFOs for my current library (so it could be rescanned later without downloading everything from IMDB).