Jump to content

UTF-8 - Default encoding


gylys

Recommended Posts

Hello to all,

 

I need do the translation WHCMS to Lithuanian language, But can’t find how to set default encoding to utf-8.

 

Thanks in advance :-)

 

Yes theres more ppl need this available for UTF-8 charset, wheres whmcs shows error if encoded language file is in UTF-8

Link to comment
Share on other sites

Hi Matt,

 

That is part of the solution, but the bigger issue is that the language files are encoded in whatever PHP uses to represent strings (ISO-8859-1, I believe?) and not UTF-8. Thus, when you try to use the smarty template strings in a xhtml file that is charset=UTF-8 the ISO-8859-1 strings from the language files appear as garbage. One solution is to encode the problematic letters in the language files as HTML entities e.g.: á as á but that is a pain in the behind. C'est la vie, I suppose, but it would be nice to have native support for UTF-8 strings in WHMCS for values that come from the DB such as client info and such. :)

 

Cheers from Panama.

 

Antonio

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated