Characters problems Characters problems
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Characters problems

Started by can93, January 12, 2006, 11:35:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

can93

Hello all,

Before writing this topic i've tried the method of stanaka : http://forum.coppermine-gallery.net/index.php?topic=24129.0 but the problem remain

Some precisions :
- I don't know what is my previous version encoded characters...

But, since i've installed the new version of coppermine (1.4.3 with the maintenance release), the characters begin to change.

On the database :

In the database(from previous version) the sentences look to that : el sont trop belles mé chéries!!!bientot sur lé po...(in the database), no problems of encoding (comments).
After the installation of 1.4.3 with maintenance release, they look to that : écoute l'anonyme la pk tu mé ton prénon ta ...(in the database), but the previous comments encoding don't change...

On Coppermine, at viewing

Actually when i set in coppermine configuration the language encoding to (utf8 recommended), the new comments look good, they show normally like : écoute l'anonyme la pk tu méton prénon ta, but in the database is : écoute l'anonyme la pk tu mé ton prénon ta ... and the comments from previous configuration like : el� bel la tite m� pa grande, the accents are replaced by a "?" but the quotes are visibles correctly and in the database from previous version, the comments remain good the previous comment in bold look to elé bel la tite mé pa grande(in the database from previous version)

Sorry if you don't understand correctly my post, but i'm not english..  :'(

And, when i set the encoding characters to Western (ISO 8859-1) the comments in the previous version are looking good, the accents and the quotes are visible.. but the comments after the new version are the same that in the database (écoute l'anonyme la pk tu mé ton prénon ta ... when i set to Western)

And the words of menu like to Paramètres des thèmes too, and the admin panel control at top of each page have the same problem...

I conclude now, that my previous encoding characters might be Western ISO 8895-1, i don't know..

There is my debogage information, if it will be helpfull (showing at the first page of the site, the home) :

QuoteUSER:
------------------
Array
(
    [ID] => 4650709b7db6b7548bcd1ddf0a7fbc3f
    [am] => 1
    [lang] => french
    [liv] => Array
        (
           
  • => 275
                [1] => 300
                [2] => 301
                [3] => 292
                [4] => 302
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => can93
        [groups] => Array
            (
               
  • => 1
            )

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 0
        [has_admin_access] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Administrators
        [upload_form_config] => 3
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg132_filetypes; (0.001s)
        [1] => select * from cpg132_plugins order by priority asc; (0.002s)
        [2] => delete from `dayho`.cpg132_sessions where time<1137101359 and remember=0; (0.003s)
        [3] => delete from `dayho`.cpg132_sessions where time<1135895359; (0.001s)
        [4] => select user_id from `dayho`.cpg132_sessions where session_id=md5("b579aace6c65133608533427e469c27e03661c2bee115fadcf71df71ccb2f02f"); (0s)
        [5] => select user_id as id, user_password as password from `dayho`.cpg132_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `dayho`.cpg132_users AS u INNER JOIN `dayho`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `dayho`.cpg132_users AS u WHERE user_id='1' and user_group_list <> ''; (0.001s)
        [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
        [10] => update `dayho`.cpg132_sessions set time='1137104959' where session_id=md5('b579aace6c65133608533427e469c27e03661c2bee115fadcf71df71ccb2f02f'); (0.003s)
        [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg132_banned WHERE expiry < '2006-01-12 23:29:19' (0.001s)
        [13] => SELECT * FROM cpg132_banned WHERE (ip_addr='83.158.152.90' OR ip_addr='83.158.152.90' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos (0.002s)
        [15] => SELECT aid FROM cpg132_albums WHERE category = 6 (0.001s)
        [16] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category = 6 (0.001s)
        [17] => SELECT count(*) FROM cpg132_albums as a WHERE category = '6' (0.005s)
        [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,6 (0.006s)
        [19] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (12, 13, 14, 15, 20, 27)GROUP BY a.aid (0.005s)
        [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='300' (0.001s)
        [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='302' (0.001s)
        [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='236' (0.008s)
        [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='151' (0.001s)
        [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='301' (0.002s)
        [25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='295' (0.001s)
        [26] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '6'  ORDER BY pos (0.001s)
        [27] => SELECT aid FROM cpg132_albums as a WHERE category>=10000 (0.001s)
        [28] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000 (0s)
        [29] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos (0.002s)
        [30] => SELECT aid FROM cpg132_albums as a WHERE category = '0' (0s)
        [31] => SELECT count(*) FROM cpg132_albums as a WHERE 1 (0s)
        [32] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1 (0.001s)
        [33] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1 (0.004s)
        [34] => SELECT count(*) FROM cpg132_categories WHERE 1 (0.004s)
        [35] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1 (0s)
        [36] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0.013s)
        [37] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'  (0.008s)
        [38] => SELECT * FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,18 (0.004s)
        [39] => SELECT count(*) from cpg132_comments where pid=302 and msg_id!=0 (0.001s)
        [40] => SELECT count(*) from cpg132_comments where pid=301 and msg_id!=0 (0.001s)
        [41] => SELECT count(*) from cpg132_comments where pid=300 and msg_id!=0 (0.001s)
        [42] => SELECT count(*) from cpg132_comments where pid=299 and msg_id!=0 (0.001s)
        [43] => SELECT count(*) from cpg132_comments where pid=298 and msg_id!=0 (0.001s)
        [44] => SELECT count(*) from cpg132_comments where pid=297 and msg_id!=0 (0.001s)
        [45] => SELECT count(*) from cpg132_comments where pid=296 and msg_id!=0 (0.001s)
        [46] => SELECT count(*) from cpg132_comments where pid=295 and msg_id!=0 (0.001s)
        [47] => SELECT count(*) from cpg132_comments where pid=294 and msg_id!=0 (0.002s)
        [48] => SELECT count(*) from cpg132_comments where pid=293 and msg_id!=0 (0.001s)
        [49] => SELECT count(*) from cpg132_comments where pid=292 and msg_id!=0 (0.001s)
        [50] => SELECT count(*) from cpg132_comments where pid=291 and msg_id!=0 (0.001s)
        [51] => SELECT count(*) from cpg132_comments where pid=290 and msg_id!=0 (0.001s)
        [52] => SELECT count(*) from cpg132_comments where pid=289 and msg_id!=0 (0.001s)
        [53] => SELECT count(*) from cpg132_comments where pid=288 and msg_id!=0 (0.001s)
        [54] => SELECT count(*) from cpg132_comments where pid=287 and msg_id!=0 (0.003s)
        [55] => SELECT count(*) from cpg132_comments where pid=286 and msg_id!=0 (0.001s)
        [56] => SELECT count(*) from cpg132_comments where pid=281 and msg_id!=0 (0.001s)
        [57] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0' (0.001s)
        [58] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'  (0s)
        [59] => SELECT * FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 18 (0.01s)
        [60] => SELECT count(*) from cpg132_comments where pid=294 and msg_id!=0 (0s)
        [61] => SELECT count(*) from cpg132_comments where pid=102 and msg_id!=0 (0.001s)
        [62] => SELECT count(*) from cpg132_comments where pid=144 and msg_id!=0 (0.001s)
        [63] => SELECT count(*) from cpg132_comments where pid=163 and msg_id!=0 (0.001s)
        [64] => SELECT count(*) from cpg132_comments where pid=160 and msg_id!=0 (0.001s)
        [65] => SELECT count(*) from cpg132_comments where pid=72 and msg_id!=0 (0.001s)
        [66] => SELECT count(*) from cpg132_comments where pid=98 and msg_id!=0 (0.001s)
        [67] => SELECT count(*) from cpg132_comments where pid=154 and msg_id!=0 (0s)
        [68] => SELECT count(*) from cpg132_comments where pid=132 and msg_id!=0 (0s)
        [69] => SELECT count(*) from cpg132_comments where pid=210 and msg_id!=0 (0.001s)
        [70] => SELECT count(*) from cpg132_comments where pid=65 and msg_id!=0 (0.001s)
        [71] => SELECT count(*) from cpg132_comments where pid=159 and msg_id!=0 (0.001s)
        [72] => SELECT count(*) from cpg132_comments where pid=169 and msg_id!=0 (0.001s)
        [73] => SELECT count(*) from cpg132_comments where pid=128 and msg_id!=0 (0.001s)
        [74] => SELECT count(*) from cpg132_comments where pid=79 and msg_id!=0 (0.001s)
        [75] => SELECT count(*) from cpg132_comments where pid=119 and msg_id!=0 (0.001s)
        [76] => SELECT count(*) from cpg132_comments where pid=289 and msg_id!=0 (0.001s)
        [77] => SELECT count(*) from cpg132_comments where pid=158 and msg_id!=0 (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 4.1.15
    ------------------
    Coppermine version: 1.4.3(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: 2.0 or higher
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XBM Support:
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Links 1
    Client API version 4.1.15
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/mysql/include/mysql
    MYSQL_LIBS -L/usr/mysql/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.2
    Linked Version 1.2.2
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | On
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | On | On
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | /var/www/sdc/0/2/dayho/include:. | .
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 2M | 2M
    ==========================
    Page generated in 0.39 seconds - 78 queries in 0.135 seconds - Album set : ; Meta set: ;
and here the warnings below the debogage information :

Quote/include/functions.inc.php

    * Notice line 88: Undefined variable: cpg_show_private_album

/include/themes.inc.php

    * Notice line 1746: Undefined index: inactive_next_tab
    * Notice line 1747: Undefined index: inactive_prev_tab
    * Notice line 1746: Undefined index: inactive_next_tab
    * Notice line 1747: Undefined index: inactive_prev_tab

At all pages i have the debug who show himself, and randomly with warnings below

I think i've provided all the informations that you need...

Please help meeeeee !!!

Thanks by advance..


Joachim Müller

did you convert your db using charsetmgr.php ?

can93

I didn't know that...

i've tried after viewing your response.

i launched the charsetmgr.php, an avertissement message appear : your database is already on utf8.. like something that...
i try to change from utf8 to Western

This message appear : You must check that all the cells in blue are displayed properly.
and below this message error appear :
QuoteFatal error: Call to undefined function: iconv() in /var/www/sdc/0/2/dayho/charsetmgr.php on line 76

And after an empty table with theses columns titles :  String   Table   Column   Id   Query

Thanks if you can help me

Joachim Müller