Advertisement:

Author Topic: YaBB2.1 to SMF conversion  (Read 7266 times)

Offline andyjosh

  • Newbie
  • *
  • Posts: 9
YaBB2.1 to SMF conversion
« on: August 24, 2007, 07:16:08 PM »
Hello, I just converted Yabb2.1 to SMF using the converter. YaBB board was using Unicode, and so I installed SMF with UTF support. Everything went well, but I can not see the unicode characters. I've tried using 'admin'->forum maintenance->convert html to utf8, but that did't help.
Basically I am seeing two types of characters:

[ch2350][ch2352]....
and फोर

They both are unicode characters, but for some reason they don't show up as unicode characters?!?
THanks for all help in advance.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: YaBB2.1 to SMF conversion
« Reply #1 on: August 24, 2007, 08:14:50 PM »
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline andyjosh

  • Newbie
  • *
  • Posts: 9
Re: YaBB2.1 to SMF conversion
« Reply #2 on: August 25, 2007, 08:53:14 AM »
Thanks for the link- I wonder if the same bug in phbb->smf is in yabb->smf also? If so, is there a corrected version of tht convert.php file? I've downloaded yabb2.1->smf converter.
I've tried all three-
1. Installed smf with utf support
2. Used convertor
3. Used admin to convert html to unicode.

Nothing seems to help. Oh, the only charcters that show up correctly are after 'News' on top of the page. Not sure thats relevant.

Offline andyjosh

  • Newbie
  • *
  • Posts: 9
Re: YaBB2.1 to SMF conversion
« Reply #3 on: August 25, 2007, 03:31:34 PM »
Still same problem- tried more than half dozen different convert.phps from different posts.

Two types of characters show up: something like फ and [ch2312]
Not sure what the difference is- but first one is html unicode correct? Even after running forum maintenance it does not change.

Any ideas?

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: YaBB2.1 to SMF conversion
« Reply #4 on: August 25, 2007, 03:57:33 PM »
Is YaBB using UTF-8 support or another charset?  Also check to see if you have $db_character_set defined in Settings.php.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline andyjosh

  • Newbie
  • *
  • Posts: 9
Re: YaBB2.1 to SMF conversion
« Reply #5 on: August 27, 2007, 09:39:18 AM »
$db_character_set is correct, but it is possible that YaBB is saving in some intermediate format -[ch****] could be used to represent unicode character.

So the yabb->smf converter script expects unicode characters in the message files, correct?

Offline andyjosh

  • Newbie
  • *
  • Posts: 9
Re: YaBB2.1 to SMF conversion
« Reply #6 on: August 28, 2007, 10:19:40 PM »
OK- I figured what the problem was. For some reason yabb saves unicode characters as [ch1234] type format and converts it to unicode when displaying. So I extracted the functions that were converting and converted all the files to unicode. Now I am able to display all the messages correctly in unicode.

However, the user names are still not displayed correctly- they still show up as &#1234. The database is already set to accept unicode, and I've done all conversions. Any ideas?

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: YaBB2.1 to SMF conversion
« Reply #7 on: August 28, 2007, 10:26:37 PM »
Maybe the usernames are encoded the same way.  Can you send me a sample of the users file?  Also can you post a sample post with unicode chars directly from YaBB?
« Last Edit: August 28, 2007, 10:29:38 PM by JayBachatero »
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert