Jump to content

Greek And WHMCS


petros82

Recommended Posts

I use whmcs to register .gr TLDs and my registrant needs utf-8 encoding so i setup to localization setting utf-8

 

 

My language file is in Greek and i see characters like (��)

 

When i add the line "header('Content-Type: text/html; charset=iso8859-7');"

 

in my language file, everything is ok, but when a customer input text then

 

from my admin panel i see (��) again !

 

Anyone can help me ?

 

Thanks in advanced

 

Petros

Link to comment
Share on other sites

Hi Everyone,

 

The best solution for any language with special characters is the following (trust me, I had severe headache before hacking it):

 

Edit your desired lang file in "notepad ++", type in any special character you like (no need for HTML codes), convert the file to 'UNIX UTF8 without DOM' format, and set up UTF8 in the admin area.

 

That's all!

 

Hope it helps.

 

Greets,

Dusan.

Link to comment
Share on other sites

  • 2 weeks later...

You have to change the file encoding with notepad++ to UTF8 without bom as was said but you will also have to check the collation of your database.

mySQL tables and fields collation has to be UTF8 unicode or UTF8 general.

Make sure that when something is written on your database is written with normal greek characters.

Link to comment
Share on other sites

  • 3 weeks later...
Hi Everyone,

 

The best solution for any language with special characters is the following (trust me, I had severe headache before hacking it):

 

Edit your desired lang file in "notepad ++", type in any special character you like (no need for HTML codes), convert the file to 'UNIX UTF8 without DOM' format, and set up UTF8 in the admin area.

 

That's all!

 

Hope it helps.

 

Greets,

Dusan.

 

thanks for this working solution on v4.:!:

Link to comment
Share on other sites

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

 

Nice :lol:

 

What was your old encoding inside WHMCS ? (From Settings > Localization)

 

Unicode or Greek ISO ?

Because I have started with Greek ISO and everytime I tried

to switch to UTF all the Database information including

clients, comments, names, invoices, generally everything

messed up... (Yes the classic "???" sh*t)

 

I tried iconv, voodoo magic, shell scripts, notepad++

but I cannot convert the db into UTF to change it entirely..

 

Any ideas ?

 

Matt told me it cannot be done but I just believe he had

a bad day when he told me...

Link to comment
Share on other sites

utf8.

 

but the database and the language files are 2 separate issues.

 

this solution is for the language files, not the database.

 

im afraid, but not 100%, that you might need to re-enter all your data.

 

best bet would be a clean install and the bd local set to utf8 as well as in whmcs.

 

hope this helps.

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