Ticket #581 (closed defect: fixed)
UnicodeErrors when logging non-unicode strings containing non-ascii characters
| Reported by: | plch.m | Owned by: | jteh |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | development |
| Keywords: | error sound, video, web | Cc: | |
| Operating system: | Windows 7 | Blocked by: | |
| Blocking: |
Description (last modified by plch.m) (diff)
When the video starts, the error sound is played. It plays until the end of clip. Then error sound stops playing.
Here is the direct link:
http://fotbalzive.ct24.cz/article.asp?id=16205&play=1
Attachments
Change History
comment:1 follow-up: ↓ 3 Changed 2 years ago by jteh
What video? Please provide the URL to a page which reproduces this.
comment:3 in reply to: ↑ 1 Changed 2 years ago by plch.m
Replying to jteh:
What video? Please provide the URL to a page which reproduces this.
comment:4 follow-up: ↓ 5 Changed 2 years ago by jteh
I can't reproduce this. However, these errors relate to logging and are hiding the real log message.
Can you please try with r3605? This should stop the errors, but I'd appreciate it if you could play this video again and then attach another log, as it should now log some useful info which will help us track down the source of these bad log messages.
comment:5 in reply to: ↑ 4 Changed 2 years ago by plch.m
Replying to jteh:
I can't reproduce this. However, these errors relate to logging and are hiding the real log message.
Can you please try with r3605? This should stop the errors, but I'd appreciate it if you could play this video again and then attach another log, as it should now log some useful info which will help us track down the source of these bad log messages.
Hi,
i tested it with R3606 and no problems found.
I can play the video without error sound.
This temporary fix is helpful for other applications, such as windows live mail, where the error sound plays when moving between message folders.
So thank you for this fix.
comment:6 Changed 2 years ago by jteh
- Status changed from new to accepted
- Owner set to jteh
- Summary changed from Playing video on the web to UnicodeErrors when logging non-unicode strings containing non-ascii characters
The root cause is that _ctypes.FormatError, which is used by COMError and ctypes.WinError, fetches the message in ANSI instead of unicode. Grrrr! I'm improving on my fix in r3605 at present.


