News:

Looking for a good read? Check out the SimpleDesk Team Blog.

Main Menu

From where i can change charset

Started by Moner, July 03, 2016, 11:48:34 AM

Previous topic - Next topic

Moner

Hello
i am use simpledesk with SMF 2.0.11 with arabic language
but there problem with arabic language in header menu and other
from any file i can change charset=UTF-8 to charset=windows-1256

SleePy

SimpleDesk follows SMF's charset.  However, I would suggest sticking with UTF-8 as SMF and SimpleDesk doesn't do extensive testing with alternate charsets.
Jeremy D — Spare-Developer

Moner

#2
Hello ,SleePy

i am use simpledesk with SMF 2.0.11 with arabic language
but there problem with arabic language

Please see images in Attachments





SleePy

I'm afraid you would have to give me more information as I'm not sure what I'm supposed to be seeing here.
Jeremy D — Spare-Developer

Moner



briefly explain:

simpledesk template working on charset=UTF-8
charset=UTF-8 Given Problem with arabic language
i want simpledesk template working with charset=windows-1256

and SMF theme working charset=windows-1256 and working fine with arabic language

How i can change simpledesk template for woking on charset=windows-1256 ?

SleePy

You would have to modify the database manually as SimpleDesk follows SMF's charset, but if you convert or change it later, it won't follow it.  Other than that, SimpleDesk follows what your SMF charset was set to.

SMF 2.1 will be moving all forums to use UTF-8.  So you can expect that SMF will have limited support for non-UTF-8 forums in 2.1 and beyond.
Jeremy D — Spare-Developer

Moner

Hello SleePy,
let you know arabic language not working fine with UTF-8

my SMF 2.0.11 database working on latin1_swedish_ci ,and arabic language working fine with this.

and for try i was convert simpledesk database from utf8_bin to latin1_swedish_ci ,but the problem not solved :(

i think the problem in simpledesk template

Ok,let me ask you ,in any file simpledesk template we can add this code ?

<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />

OR
header("Content-type: text/html; charset=windows-1256");

OR
<meta http-equiv='Content-Type' content='text/html; charset=windows-1256'>

OR
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">

SleePy

SMF already specifies the meta charset.  You can see this even on SimpleDesk pages by viewing the source.  If you have changed all the database tables and columns where the charset is specified, this should in theory work.

SimpleDesk has not been tested with any other charsets other than the default and UTF-8.  In future versions of SMF, UTF-8 will be the only supported charset.  SimpleDesk will also follow this route and only support UTF-8.

Jeremy D — Spare-Developer