Skip to contentSkip to conversation

converting from cp1251 to utf-8

DISCUSSION Alphex K. 2 participants 3 messages Mar 26, 2004

lore
Share & tools
lore

Alphex K.

author
#0 lore raw

Hi guys,
I'm have a big trouble with converting from cp1251 to utf-8 I'm get some data from MySQL in cp-1251 and I need convert it to utf-8 so, how I can do it?

thanx

---===---
Alphex Kaanoken
Senior developer of Crew IT research labs
web: http://crew.org.ru
mailto:[email protected]

#1 lore raw
Quoted 3 lines · Alphex K.

I'm have a big trouble with converting from cp1251 to utf-8 I'm get some data from MySQL in cp-1251 and I need convert it to utf-8 so, how I can do it?

Use iconv() etc; see the "Generic Charset Conversion" node in the libc Info file for details.

Signature · 1 line
Glynn Clements <[email protected]>
author
#2 lore raw
Quoted 16 lines · On Fri, 26 Mar 2004 15:37:05 +0000 Glynn Clements <[email protected]>…
Quoted 3 lines · Alphex K.

I'm have a big trouble with converting from cp1251 to utf-8 I'm get some data from MySQL in cp-1251 and I need convert it to utf-8 so, how I can do it?

Use iconv() etc; see the "Generic Charset Conversion" node in the libc Info file for details.

Signature · 5 lines
Glynn Clements <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

thanx, but I found some gtk functions like g_locale_to_utf8() and g_convert it work.

---===---
Alphex Kaanoken
Senior developer of Crew IT research labs
web: http://crew.org.ru
mailto:[email protected]