PDA

View Full Version : Charset problem when creating threads automatically


enesismail
06-29-2010, 07:43 AM
Hi there,

I am trying to integrate VB4 into existing website with members, topics, comments etc.

I have solved the single sign-on thing with the help of some forum search. Thank you all guys for sharing knowledge.

In addition, I'm trying to create threads via Data Manager Api. It works like a charm.

The problem is that some charset issues. My existing database is MYSQL-Latin5 format. Fetching from db and writing into VB4 works fine.

But when I try to concatenate db value with some fixed string charset issues occur.

For example:

$post_text = $post_text . $db->some_value . " - some string including ş ğ ? ? İ OR ı ";

some_value part seems to be right but trailing string looks like sh.t:

hakkındaki yorumlarınızı dilediğinizce paylaşabilirsiniz.

How can i solve this? Google doesnt have the answer. I have already tried iconv function or changing the meta charset. Any other solutions or tricks highly appreciated.

Thanks in advance.

gamerzhut
06-29-2010, 09:45 AM
Even i am having the same problem :( after refreshing the page it looks fine :)

enesismail
07-06-2010, 09:27 AM
i have solved this creating a temp table with same encoding. just inserted my fixed strings and then fetched from there.

maybe it works somebody else.