n1k0 / SublimeHighlight

A humble SublimeText package for exporting highlighted code as RTF or HTML
https://github.com/n1k0/SublimeHighlight
MIT License
788 stars 105 forks source link

Encoding problems in RTF #44

Open be9 opened 10 years ago

be9 commented 10 years ago

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.

yeluolei commented 9 years ago

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

GingerN commented 8 years ago

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: `<!DOCTYPE html>

Заголовок Title ` I get this: ` Заголовок Title ` 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.