UTF-8 From TVMaze

Advanced Renamer forum
#1 : 11/12-15 22:24
Jon
Jon
Posts: 12
This problem persisted while it was still TVRage, but it seems that when AR gets the information from the site, it doesn't capture the UTF-8 encoding properly. I don't run in to the issue often, but since I was trying to rename the Hannibal series, it messes up all the files when importing from TVMaze. An example would be Season 1, Episode 1, the name of the episode should be: "Apéritif", but when imported to AR it tries to rename the file to: "Apéritif".

I checked the TVMaze API to see if it was erroneous in the JSON, (I used the http://api.tvmaze.com/shows/194/episodes JSON as the test source for what I assume AR is pulling from) but the API returned it correctly encoded.

Am I doing something wrong within AR that would be causing this? Or is it inherently a bug within AR itself?

Also, thank you for an absolutely great program that I use often! I hate criticizing other programmers work, so I assume it's user error first. :)


11/12-15 22:24
#2 : 14/12-15 22:24
Kim Jensen
Kim Jensen
Administrator
Posts: 882
Reply to #1:
Ah, that is some encoding gone wrong. I will release a fix soon. I have only been testing with shows which only use the regular characters. It is because JSON is always UTF-8 encoded, while Advanced Renamer uses ASCII or UTF-16. This is what goes wrong. It will be fixed.


14/12-15 22:24
#3 : 15/12-15 03:38
Jon
Jon
Posts: 12
Reply to #2:

Oh awesome. Thank you for the quick response as well! I figured it might be something like that, but thought that maybe I was missing something in the settings. ^^

Again, thank you for a fantastic program!


15/12-15 03:38
#4 : 02/01-16 14:33
Jon
Jon
Posts: 12
Reply to #2:

Thank you for the fix!


02/01-16 14:33
#5 : 02/01-16 16:51
Kim Jensen
Kim Jensen
Administrator
Posts: 882
Reply to #4:
Does this mean that you can confirm the fix works for you?


02/01-16 16:51
#6 : 02/01-16 18:10
Jon
Jon
Posts: 12
Reply to #5:

Indeed it does. Works brilliantly for UTF-8 from the JSON responses now.


02/01-16 18:10