WARNING:
1) For chinese, japanese, korean, thai and some other languages which use non-latin characters or hieroglyphs in their alphabets you need to find and download special fonts, that have Unicode block (section) for that language, for example "Arial Unicode MS.ttf" will support all these listed above languages, rename downloaded font to "liberationsans.ttf" (defaulf cs2d font in 1.0.1.2 version) and copy with replace to cs2d/gfx/fonts.
2) for colored texts use © not \169
3) function works good in cs2d 1.0.1.2, but not guaranteed to work in future versions
BUGS:
- you can't use ; (semicolon), but it's vanilla cs2d bug/limitation
INSTALLATION:
drop simpleutf8.lua to cs2d/sys/lua folder and dofile it in server.lua
dofile("sys/lua/simpleutf8.lua")
USAGE:
parse replacement method:
fix for ui-framework:
P.S. I know cs2d is dead but I don't care, we still can make some funny things in it
Good Luck!
 Approved by Seekay 
 Download
 Download
		2 kb, 642 Downloads
		 
  CS2D
 CS2D  2Gen's "Simple UTF-8"
  2Gen's "Simple UTF-8"  4 like it!
 4 like it! Offline
 Offline
 
				 
  1
 1 
 Hajt: Unfortunately 'cs2d=>lua' text from say hook can be received only for english language. For example, I tried to get messages data from russian and lua sees and saves " !"#$%&'()*+,-./" instead "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ". It seems I suggested to devs 3+ years ago to add UTF-8 support for 'from-game to lua texts' but as you can see there is no any.
 Hajt: Unfortunately 'cs2d=>lua' text from say hook can be received only for english language. For example, I tried to get messages data from russian and lua sees and saves " !"#$%&'()*+,-./" instead "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ". It seems I suggested to devs 3+ years ago to add UTF-8 support for 'from-game to lua texts' but as you can see there is no any.