Author Topic: problem with unicode  (Read 4580 times)

0 Members and 1 Guest are viewing this topic.

Offline AP

  • Pre-Newbie
  • Posts: 3
    • View Profile
problem with unicode
« on: November 24, 2002, 10:01:03 PM »
is 4images support unicode on the header?

for example:

http://www.toipham.com/gallery/top.php

It display unicode fine in the thread itself but not on the link i provide above? Any idea?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
problem with unicode
« Reply #1 on: November 24, 2002, 10:29:51 PM »
Search in top.php for
Code: [Select]
htmlspecialchars($top_list[$i]['image_name'])
and replace it with
Code: [Select]
$top_list[$i]['image_name']

Replace
Code: [Select]
htmlspecialchars($top_list[$i][$user_table_fields['user_name']])
with
Code: [Select]
$top_list[$i][$user_table_fields['user_name']]

Replace
Code: [Select]
htmlspecialchars($top_list[$i]['cat_name'])
with
Code: [Select]
$top_list[$i]['cat_name']
Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline AP

  • Pre-Newbie
  • Posts: 3
    • View Profile
problem with unicode
« Reply #2 on: November 24, 2002, 10:37:36 PM »
humm...so it have nothing to do with replace the charset to UTF-8? We want it to display in vietnamese font and UTF-8 will let the font disply correctly.

BTW, let me rephrase my question. I want the vietnamese font to display  on the topic, not on the header.

Offline AP

  • Pre-Newbie
  • Posts: 3
    • View Profile
problem with unicode
« Reply #3 on: November 24, 2002, 10:54:15 PM »
here is the capture:



As you can see, part A and part C display the font correct but on part B, they kinda mess up. How to fix it?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
problem with unicode
« Reply #4 on: November 25, 2002, 07:39:16 AM »
Yes, i know what you mean. Try what i said above.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search