This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Font and code problem.

Help for those learning Tcl or writing their own scripts.
Post Reply
S
SkIRmiS
Voice
Posts: 3
Joined: Fri Oct 28, 2005 7:58 am

Font and code problem.

Post by SkIRmiS »

Hello,

I'm using mysql DB for storing text. But when I'm parsing text from db to channel, the text is not correct. Missing my native language fonts and code [proc] is not executed as proc, but displayed as text. The color code is not working too.

The code:
set textas [mysqlsel $handle "SELECT textas FROM kalba_lt WHERE kalbos_id='$kodas'" -flatlist]

putserv "PRIVMSG skirmis :$textas"

The result:
[kalba 0],1 Testas [kalba 4]raudonas[kalba 0]! murka \0034lama

Thanks for help!
Skirmantas
S
SkIRmiS
Voice
Posts: 3
Joined: Fri Oct 28, 2005 7:58 am

Post by SkIRmiS »

Found the answer, for color and code helps tcl command subst. But still have problem with language fonts, like ąčęėįųūž. When I',m reading from plain txt file everythings works fine, but from DB i got only ?????
Post Reply