-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
epg parsing error - 'charmap' codec can't encode character #79
Comments
Hi there, it maybe fixable but there's not enough to go on with what you've supplied so far. On the face of it there's nothing wrong with your supplied xml file and a quick script test through with it worked as expected here, no errors seen. |
Hello! |
No problem, if you're able to supply the config file with URLs/passwords removed and the original m3u file, that would enable me to run the script in exactly the same way as you against your source data. |
m3u.zip |
I've retried today and same error: |
Thanks will take a look asap |
Hi again, I've run a test with your supplied json config, m3u and xml file and no errors were seen. The only changes that I made to your json config for the test run was to repoint the I've attached the files back here so you can take a look at the outcome and the details that were recorded for the test run in the If these supplied files were expected to fail then it is strange for sure and my gut tells me that it's perhaps some sort of environmental / windows O/S type of problem that you're seeing. |
I'm using windows 10 pro 21H2, french localisation. |
Thank you it's good to learn a little more about your OS and environment and yes I did notice the non-standard character ◉ in your source data, it exists in both your m3u and xml files. Stripping this character (and perhaps others) out could be an option but before we follow that idea, can I ask why you have the The original idea for the existence of the In short, the I can see from your error report that the script is failing for you in an area of code only active when |
Same result with force_epg to false. Thanks for the explanation about the option. I think that sometimes I have this kind of epg stored in the channel name. |
I have found a workaroud. |
Wow good find :) The link you included explains that it is a Windows OS issue related to the Windows shell that you're using - it would appear that it doesn't by default support UTF-8. Are you using the regular (old) Windows command prompt rather than a Powershell shell? |
yes indeed. |
OK this makes a little more sense to me now. The issue you have encountered is a Unicode (UTF-8) related issue that was triggered by Unicode characters in your data combined with your Windows command prompt shell that for one reason or another doesn't support Unicode by default. Reading around this subject I believe that once upon a time, the Windows command prompt didn't support Unicode at all. Microsoft applied a number of incremental changes throughout Windows 10 builds to get the windows command prompt to a point where it is now supposed to support Unicode. There is clearly something in your system setup where it doesn't by default support Unicode, personally I suspect that it's related to your French locale and that affecting the code-page that is in use within your command prompt - this is a guess on my part. You might see different results in a Powershell prompt and you could get different results again with the new Windows Terminal (the one that is installable from the Windows Store). I do appreciate you reporting this issue, it could be helpful if it crops up for someone else. I think we can call this resolved if you're happy for this issue to be closed. |
Feel free to reopen if need be. For the record: |
Hello,
I'm trying to filter an epg and I get this error:
epg creation failure: 'charmap' codec can't encode character '\u25c9' in position 104: character maps to
original.zip
Is it possible to fix that please?
Thank you.
The text was updated successfully, but these errors were encountered: