Support > cpg1.5 miscellaneous

Unicode UTF-8 Problems

<< < (2/2)

KchoPrro:

--- Quote from: KchoPrro on August 13, 2022, 06:52:41 pm ---Done. I have left it as it was before. There is no solution? If I update to CPG 1.6x, could the problem be solved?

--- End quote ---

I answer to myself;

Updating CPG from 1.5.48 to 1.6.19 has not solved the problem, I keep getting weird characters in some words. I also see these characters in the database.

Finally, I believe that there is no other solution than to correct every word in the entire gallery  :'( :'(.

ron4mac:
I'm sorry I can't give you exact detail but others have solved this without having to do what you suggest. If you search the forum well enough, you may find some tips for dealing with your situation. I think by using the right combination of dbcharset in the config file and table encoding values in the database, your problem could be solved.

KchoPrro:

--- Quote from: ron4mac on August 16, 2022, 01:33:58 pm ---I'm sorry I can't give you exact detail but others have solved this without having to do what you suggest. If you search the forum well enough, you may find some tips for dealing with your situation. I think by using the right combination of dbcharset in the config file and table encoding values in the database, your problem could be solved.

--- End quote ---

Thanks again ron4mac, you are always on the other side to help users :)

I will search better. I am now on CPG version 1.6.19 and the problem still exists. I don't have any experience in computer programming but I see that the errors also appear in the database (Screenshot attached).

I believe that CPG correctly shows what appears in the Database, it is not CPG's fault. It is possible that when making a backup copy of CPG in my previous hosting this problem appeared and the database has already been left wrong. If it were related, I'm afraid I no longer have access to the previous hosting.

Well, if I don't find a faster solution, I'll have no choice but to make the corrections directly in the database, with a lot of time (it's almost 1,000 entries).

ron4mac:
You should try:

--- Code: ---$CONFIG['dbcharset'] = 'latin1';
--- End code ---
in your include/config.inc.php file.

KchoPrro:

--- Quote from: ron4mac on August 22, 2022, 01:35:23 pm ---You should try:

--- Code: ---$CONFIG['dbcharset'] = 'latin1';
--- End code ---
in your include/config.inc.php file.

--- End quote ---

This does work! :)
My website is displayed correctly now, despite that, in the Database there are the strange characters (I attach two screenshots).

Logically, now what goes wrong are the words that I manually corrected, so it's not that they are wrong in the database, I suspect that they have to be like that and then the browsers must interpret those characters in Unicode UTF-8. For some reason this doesn't work, but latin1 does solve it.

Now I only have to undo the first 25 entries that I modified in the database manually.

Thanks a lot again ron4mac ;)

Navigation

[0] Message Index

[*] Previous page

Go to full version