n1k0 / SublimeHighlight

A humble SublimeText package for exporting highlighted code as RTF or HTML

Home Page:https://github.com/n1k0/SublimeHighlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encoding problems in RTF

be9 opened this issue · comments

Using non-ASCII symbols, e.g. Cyrillic symbols results in UTF-8 being treated as ASCII.

For example, comment in C++ source file:

// проверка

becomes

// п€“Ñšро€“ÐŠв€“â‰¤е€“Âµрк€“Ð‡а€“âˆž

The line has proper color and font face, but essentially is a garbage :)

HTML conversion works fine.

commented

same problem with Chinese language, please consider to solve this issue. thanks~

This problem is still actual. When I choose "copy to clipboard as rtf" or "view as rtf" I get invalid cyrillic (also arrow symbol) symbols when pasting to Word.
From this:
`

<title>Заголовок Title</title> Включите JS <script> //пример // → 61.67 // → 54.56 </script> ` I get this: ` <title>Заголовок Title</title> Включите JS <script> //пример // → 61.67 // → 54.56 </script> `

But when I choose the "copy to clipboard as html" or "view as html" symbols stay right but formatting I need is lost. So it is not good for me either.

It would be great if this problem can be solved.