Categories > TinyButStrong general >

Native Language Problem

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Lordo
Date: 2005-01-11
Time: 01:44

Native Language Problem

I used TBS to pull some mysql data successfully. But the Arabic characters appear as symbols. Known that:
1- Code page is set correctly in the HTML template file, and
2- Regular code (without using TBS) shows Arabic characters correctly.

Any ideas?
Thanks.
By: Skrol29
Date: 2005-01-11
Time: 18:15

Re: Native Language Problem

Hi Lordo,

Did you think of indicate the charset with LoadTemplate()?

If you don't need charset conversion because data are stored already converted, then you should specify charset=false in order to ask TBS to not convert.

Example:
  $TBS->LoadTemplate('mytemplate.html',false);
Note: there is a bug with TBS 2.0 and charset=false. Use TBS 2.01 instead.

If you need to convert data, then you can specify the charset  when calling LoadTemplate(). The charset is supposed to be supported by PHP in native, otherwise you have to specify a user function for the conversion. See manual for more details.

And don't forget parameter 'htmlconv' which enables you to tune the data conversion for a specific field.
By: Lordo
Date: 2005-01-11
Time: 22:02

Re: Native Language Problem

Thanks. It worked when I set it to false :)