Does anybody know how to change BB forum to Drupal encoding. I'm using the PHP snippet that calls recent BBforum topics into a Drupal site (boht of them are installed on the same site). The problem is, that BBforum uses windows-1250 encoding and Drupal uses UTF-8 ecnoding.
So far I tryed to use this PHP command to convert encoding:
$theme_topic = mb_convert_encoding($theme_topic, "UTF-8", "WINDOWS-1250");
but it doesn't work properly with Č,Š,Ž and ć, š, ž characters.
I would also use str_replace PHP command but the problem wiht it is, that when I write character to replace into a Drupal Body text window it gets changed after submitting and writting it into a MYSQL base.
So I used the str_replace command writting it directly to the MYSQL base through PHPMyAdmin and that works but it's not much usefull. I'd like to have nicer solution.
Thanks for your help.
Comments
Got it
I've found it. This command works fine
$theme_topic = iconv("windows-1250", "UTF-8", "$theme_topic");