SimpleDesk

SimpleDesk! => SimpleDesk Support => Topic started by: Moner on July 03, 2016, 11:48:34 AM

Title: From where i can change charset
Post by: Moner on July 03, 2016, 11:48:34 AM
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
Title: Re: From where i can change charset
Post by: SleePy on July 04, 2016, 10:06:49 PM
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.
Title: Re: From where i can change charset
Post by: Moner on July 05, 2016, 10:55:51 AM
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

(https://www.simpledesk.net/community/index.php?action=dlattach;topic=2197.0;attach=1553;image)


(https://www.simpledesk.net/community/index.php?action=dlattach;topic=2197.0;attach=1555;image)
Title: Re: From where i can change charset
Post by: SleePy on July 06, 2016, 01:41:48 AM
I'm afraid you would have to give me more information as I'm not sure what I'm supposed to be seeing here.
Title: Re: From where i can change charset
Post by: Moner on July 07, 2016, 02:17:19 PM


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 ?
Title: Re: From where i can change charset
Post by: SleePy on July 07, 2016, 10:12:52 PM
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.
Title: Re: From where i can change charset
Post by: Moner on July 07, 2016, 11:29:31 PM
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">
Title: Re: From where i can change charset
Post by: SleePy on July 10, 2016, 01:25:07 AM
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.