Tryton - Issues

 

Issue5182

Title HTML richtext encoding detection
Priority bug Status deferred
Superseder Nosy List adrien.benduc, ced, jcavallo
Type behavior Components tryton
Assigned To Keywords
Reviews

Created on 2015-12-15.10:40:06 by adrien.benduc, last changed by ced.

Messages
msg24413 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2016-02-28.20:36:22
It should be reported to chardet.
msg23359 (view) Author: [hidden] (adrien.benduc) Date: 2015-12-15.11:25:46
Right, I'll known next time
Sorry.
msg23358 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2015-12-15.11:23:03
Please don't set me in copy if I don't ask.
msg23357 (view) Author: [hidden] (adrien.benduc) Date: 2015-12-15.10:40:05
The chardet module used into the deserialize function (from htmltextbuffer.py) to detect the text encoding returns ISO-XXX[...] when adding an accented character.
The only way to make chardet detects that the text should be UTF-8 encoded is to have at least 4 accented character  into the html text('é' for instance) declared as example into the htmltextbuffer.py.
For now, I force to use 'UTF-8' encoding to solve my problem.
History
Date User Action Args
2016-03-19 15:41:00cedsetcomponent: + tryton
2016-02-28 20:36:23cedsetstatus: chatting -> deferred
nosy: + ced
messages: + msg24413
2015-12-15 11:25:46adrien.benducsetmessages: + msg23359
2015-12-15 11:23:12cedsetnosy: - ced
2015-12-15 11:23:03cedsetstatus: unread -> chatting
nosy: ced, jcavallo, adrien.benduc
messages: + msg23358
2015-12-15 11:18:33adrien.benducsettype: behavior
2015-12-15 10:40:06adrien.benduccreate

Showing 10 items. Show all history (warning: this could be VERY long)