Community mailing list archives

Pasting ANSI (windows-1251) text into odoo

Ygol InternetWork, Yves Goldberg
- 08/08/2016 11:07:36

A customer needs to be able to paste text (copied from ansi / windows-cp1251) into odoo text fields (bank statement's reference).

(the source documents are pdf already encoded in wrong codepage so converting them to utf-8 doesn't seem the way to go.)

I was thinking to use a function to grab the saved ansi text, convert it and save it back in unicode. Is there a better way you can think of?