close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

UTF8 How todo it right?

Thread began 6/20/2012 7:40 am by Hamburg Webdesign | Last modified 6/20/2012 7:40 am by Hamburg Webdesign | 351 views | 0 replies

Hamburg Webdesign

UTF8 How todo it right?

Hello everybody,

I have some charset problems and I found this link showthread.php?t=15283&highlight=character+set+problem

I changed the charset in the database to UTF8 and inserted this codesnipped:

  if (!function_exists('mysql_set_charset')) {
function mysql_set_charset($charset, $link_identifier = null)
{
if ($link_identifier == null) {
return mysql_query('SET NAMES "'.$charset.'"');
} else {
return mysql_query('SET NAMES "'.$charset.'"', $link_identifier);
}
}
}
mysql_set_charset('utf8',$MyNameDB.php);  

The mysql-Version is 5.5.22-1

But it doesn´t work. Then I converted the database to utf8_general_ci. I hope I did it right, because I don´t have any experience on php or sql.


Now I´m trying to change the

$  ckeditor_config["entities"] = false

in "true".

But where do I find this line? In wich folder/file?

Thanks for help,

Mo

New************************************** The solution *********************************New

Now it´s working.

Workaround:

First insert this code to the database Connection file in the folder
Connections on your server: don´t choose PowerCMSConnection.php => the other one "yourNameFile.php" - it´s the name you gave to the connection in Dreamweaver

Before the end of file and php statement: "?>"

  if (!function_exists('mysql_set_charset')) {
function mysql_set_charset($charset, $link_identifier = null)
{
if ($link_identifier == null) {
return mysql_query('SET NAMES "'.$charset.'"');
} else {
return mysql_query('SET NAMES "'.$charset.'"', $link_identifier);
}
}
}
mysql_set_charset('utf8',$MyNameDB.php);  

<== Change $MyNameDB.php to your file name!!!!!!! Don´t forget!!!

Then change the following files:
admin_cms/contents_insert.php and
admin_cms/contents_update.php

Look for this line:

  $CKEditor_config["entities"] = false;   

and change it to:

  $CKEditor_config["entities"] = true;   

I hope this helps.

Bye, Mo

P.S. Man könnte ja auch mal Antworten komplett abgeben. So profitieren auch andere.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...