Author Topic: From where i can change charset  (Read 4724 times)

Offline Moner

  • Self Starter
  • *
  • Posts: 12
    • View Profile
From where i can change charset
« on: July 03, 2016, 10: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

Offline SleePy

  • Site Manager
  • Developer
  • *
  • Posts: 771
    • View Profile
    • SleePyCode
Re: From where i can change charset
« Reply #1 on: July 04, 2016, 09: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.
Jeremy D — Spare-Developer

Offline Moner

  • Self Starter
  • *
  • Posts: 12
    • View Profile
Re: From where i can change charset
« Reply #2 on: July 05, 2016, 09: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




« Last Edit: July 05, 2016, 09:34:01 pm by Moner9 »

Offline SleePy

  • Site Manager
  • Developer
  • *
  • Posts: 771
    • View Profile
    • SleePyCode
Re: From where i can change charset
« Reply #3 on: July 06, 2016, 12: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.
Jeremy D — Spare-Developer

Offline Moner

  • Self Starter
  • *
  • Posts: 12
    • View Profile
Re: From where i can change charset
« Reply #4 on: July 07, 2016, 01: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 ?

Offline SleePy

  • Site Manager
  • Developer
  • *
  • Posts: 771
    • View Profile
    • SleePyCode
Re: From where i can change charset
« Reply #5 on: July 07, 2016, 09: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.
Jeremy D — Spare-Developer

Offline Moner

  • Self Starter
  • *
  • Posts: 12
    • View Profile
Re: From where i can change charset
« Reply #6 on: July 07, 2016, 10: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">

Offline SleePy

  • Site Manager
  • Developer
  • *
  • Posts: 771
    • View Profile
    • SleePyCode
Re: From where i can change charset
« Reply #7 on: July 10, 2016, 12: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.

Jeremy D — Spare-Developer