foreign languages - utf-8
Permalink 1 user found helpful
hi
i instaled 5.4.1.1
i try to write in hebrew, and though the page is utf-8 and should show any character, instead of text it shows question marks.
any solution ?
i instaled 5.4.1.1
i try to write in hebrew, and though the page is utf-8 and should show any character, instead of text it shows question marks.
any solution ?
i will gladly do it if you could just tell me how to ?
thanks
thanks
Do you have access to phpMyAdmin?
How did you setup the database?
Jon
How did you setup the database?
Jon
in my hosting account there's an icon for a new MySQL (it's hsphere)
How did you install C5 though. Was it through the control panel, or did you upload the files and install it yourself?
Jon
Jon
i uploaded and installed, and it works fine.
now i entered into phpmyadmin.
trying to figure if i'm on the right place.
now i entered into phpmyadmin.
trying to figure if i'm on the right place.
it's utf-8, see the screen capture
ok - cool - do you have a link to the site at all that I can see?
Jon
Jon
Well, hebrew character should work fine in the autonav - I just tested o my install and it works...
Which version of C5 are you runnig?
Also, try pasting this code into a new file called utf8.php, save and upload it to your site then browse to the page to run it. This will ensure your db is completely setup correctly...
Note the first couple of lines, you need to ensure that you enter your db information here first.
Code taken from this thread:http://www.concrete5.org/community/forums/internationalization/unic...
If that still doesn't work, try asking in that thread - seems like some people who know more about character sets than me are posting on there :)
Jon
Which version of C5 are you runnig?
Also, try pasting this code into a new file called utf8.php, save and upload it to your site then browse to the page to run it. This will ensure your db is completely setup correctly...
<?php $host=' '; //this is the database hostname, Do not change this. $user=' '; //please set your mysql user name $pass=' '; // please set your mysql user password $dbname=' '; //please set your Database name $charset='utf8'; // specify the character set $collation='utf8_general_ci'; //specify what collation you wish to use $db = mysql_connect("$host","$user","$pass") or die("mysql could not CONNECT to the database, in correct user or password " . mysql_error()); mysql_select_db("$dbname") or die("Mysql could not SELECT to the database, Please check your database name " . mysql_error()); $result=mysql_query('show tables') or die("Mysql could not execute the command 'show tables' " . mysql_error()); while($tables = mysql_fetch_array($result)) { foreach ($tables as $key => $value) { mysql_query("ALTER TABLE $value CONVERT TO CHARACTER SET $charset COLLATE $collation") or die("Could not convert the table " . mysql_error()); }} mysql_query("ALTER DATABASE $dbname DEFAULT CHARACTER SET $charset COLLATE $collation") or die("could not alter the collation of the databse " . mysql_error());
Viewing 15 lines of 16 lines. View entire code block.
Note the first couple of lines, you need to ensure that you enter your db information here first.
Code taken from this thread:http://www.concrete5.org/community/forums/internationalization/unic...
If that still doesn't work, try asking in that thread - seems like some people who know more about character sets than me are posting on there :)
Jon
i did what you said, i got: "The collation of your database has been successfully changed!"
but still no go.
i see question marks.
I'll try the other thread, thank you for your patience
but still no go.
i see question marks.
I'll try the other thread, thank you for your patience
ok, it's fixed.
i guess the file you sent me fixed the database, but i simply had to re-enter the hebrew text since it was corrupted when it was entered.
thank you very much
i guess the file you sent me fixed the database, but i simply had to re-enter the hebrew text since it was corrupted when it was entered.
thank you very much
Brilliant - glad to know it worked :)
I'll keep a copy of that script for future reference!
Jon
I'll keep a copy of that script for future reference!
Jon
by the way, originally the charset of my database was not utf-8, the screen capture i sent you was probably from a wrong place.
the database opened by default in some version of swedish ....
your script fixed it.
i'll keep the script too
(-:
thanks again
lenny
the database opened by default in some version of swedish ....
your script fixed it.
i'll keep the script too
(-:
thanks again
lenny
since you've been so nice to me, i have another novice question.
could you tell me how to add a child page?
for exanple, under "our services" i'd like to add pages like: "we design", "we develop" "we host" etc ...
when i create a new page i can't find how to define a parent for the page.
where can i define the order of the pages?
if i'm asking too much, can you send me a link to a good tutorial ?
thanks
again
could you tell me how to add a child page?
for exanple, under "our services" i'd like to add pages like: "we design", "we develop" "we host" etc ...
when i create a new page i can't find how to define a parent for the page.
where can i define the order of the pages?
if i'm asking too much, can you send me a link to a good tutorial ?
thanks
again
All the docs you need are here:
http://www.concrete5.org/documentation/...
However, to answer your question, there are 3 methods to do what you need.
1) In context: Browse to the parent page and click add page. The new page will automagicaly be placed under that page.
2) In the dahboard: Go to the dashboard and click on Sitemap (top left). Find the page you need as a parent and click on it, then click add page and your new page will be created below it.
3) Move it: Again, from the dashboard, find the page you want to become a child. When you mouse over the page icon, you wil see the cursor changes to a crooshair. You can now click and drag that page on top of the page you want to be its parent.
Jon
http://www.concrete5.org/documentation/...
However, to answer your question, there are 3 methods to do what you need.
1) In context: Browse to the parent page and click add page. The new page will automagicaly be placed under that page.
2) In the dahboard: Go to the dashboard and click on Sitemap (top left). Find the page you need as a parent and click on it, then click add page and your new page will be created below it.
3) Move it: Again, from the dashboard, find the page you want to become a child. When you mouse over the page icon, you wil see the cursor changes to a crooshair. You can now click and drag that page on top of the page you want to be its parent.
Jon
thank you very much
lenny
lenny
Thanks for this great help
Hi
I have the same problem that you have since I updated Concrete version to 5.4.1.1
Were can I find MySQL charset, so I'll be able to check if it is UTF8 unicode?
Maybe you can explain how did you manage to solve this problem with Hebrew?
Thanks
Aya
I have the same problem that you have since I updated Concrete version to 5.4.1.1
Were can I find MySQL charset, so I'll be able to check if it is UTF8 unicode?
Maybe you can explain how did you manage to solve this problem with Hebrew?
Thanks
Aya
I managed to run the php file and it is working.
Thanks a lot.
Aya
Thanks a lot.
Aya
Jon