Categories > OpenTBS with DOCX >

Can't insert UTF-8 strings into docx. Charset options don't help.

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Asanto
Date: 2014-05-26
Time: 13:25

Can't insert UTF-8 strings into docx. Charset options don't help.

I'm trying to insert UTF-8 encoded strings (non-ANSI characters) into UTF-8 encoded docx template but it seems OpenTBS treats them as single byte strings - inserted strings appears as doubled amount of strange symbols.
Nor $TBS->LoadTemplate($template, 'UTF-8') nor $TBS->SetOption('charset', 'UTF-8') helps. And, by the way changing this option to another values causes no effect at all.
By: Asanto
Date: 2014-05-26
Time: 13:38

Re: Can't insert UTF-8 strings into docx. Charset options don't help.