Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By hakeem on
Hi there,
I'm migrating from phpBB 2.0 to Drupal 7.4. I'm using phpbb2drupal and it looks work. But since my site is in Arabic (1256 character set), I get a strange characters.
Is there any php script to convert tables in 1256 encoding to UTF-8 without exporting/importing data?
Thanks in advance.
Comments
This works for me, but some
This works for me, but some assembly is required.
There is a function in the
There is a function in the core
/database/updates.inc
that may be of use to you. Look for the function calledfunction _system_update_utf8($tables)
. It is designed to be reusable, so I'm guessing that you can probably use it on your BB tables.Don't
This function is for internal use only. It reinterprets tables that have been storing UTF-8 data all along, but were not marked as such. His site has actual non-UTF-8 data, which would get corrupted by this function.
--
If you have a problem, please search before posting a question.
ah ha
Good to know...