Skip to content
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

when i use daul mode ,the error appears seem that program is not properly internally handling unicode '\uff5c' #16

Open
davidw0374 opened this issue Mar 13, 2024 · 1 comment

Comments

@davidw0374
Copy link

davidw0374 commented Mar 13, 2024

Hi, your addon give a hand on the requirement of some people, thank you.

But here I report a problem : It runs smoothly when i use single mode, so both my subtitles files should have no problem .but when I use daul mode, the touble occurs as soon as i chose the second subtitle file. the error message said "'ascii' codec can't encode character '\uff5c' in position 70: ordinal not in range(128)"
The unicode '\uff5c' stands for 'Fullwidth Vertical Line'. Please refer to 'https://www.fileformat.info/info/charset/GB2312/list.htm'
I did the reproducibility test 8 times ,everyime the error came out. maybe the program does not parse some unicode in file name well?
I found similar problem on a github project,It might be useful for your troubleshooting.
similar problem

Also I attach the log file.

thanks .

[my_kodi.log]
Video_Subtitles.zip

@peno64
Copy link
Owner

peno64 commented Mar 24, 2024

I tried both of your subtitles and I have no problems with it. I tried with kodi 21 RC2 on a windows system.
The transcoding of the unicode characters is done via a standard library and maybe that gives a problem on your OS or kodi version. It also depends on the character set you have chosen in the dualsubtitles addon settings. For both subtitles there is the option Character set. What have you chosen there? I have tried Auto and Auto Charset_normalizer. Maybe you can try to change that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants