Results 1 to 4 of 4

Thread: Character encoding problem

  1. #1
    Join Date
    Aug 2009
    Posts
    58

    Character encoding problem

    I am using the latest updates of PHP. But still I am having the problem of character encoding. Whenever someone posts some new topics on page editor, both Firefox and IE fail to display content properly. It will always show up in special and ugly characters. But I am not 100% sure if this is related character encoding or something else. Is this character encoding related problem something else?

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Character encoding problem

    Have you enabled mb_string function at "Site Config", "Editor/HTML" tab? Try to encode it in some different format such as Windows-1256 or UNICODE or UTF-8. If this doesn't work then Arabic (windows-1256) should definitely work.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Character encoding problem

    Try to encode the web page from your database by adding the below line to your table:

    ENGINE=InnoDB CHARACTER SET='utf8';
    for example:

    PHP Code:
    CREATE TABLE my_table (
    ...........
    ENGINE=InnoDB CHARACTER SET='utf8'

  4. #4
    Join Date
    Nov 2008
    Posts
    996

    Re: Character encoding problem

    You can even add the below code in your page. This is tell the browser what encoding schema it has to implement.

    HTML Code:
    <%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

Similar Threads

  1. Replies: 3
    Last Post: 15-03-2011, 06:19 PM
  2. Problem in changing character set in Linux
    By leshaspar in forum Operating Systems
    Replies: 6
    Last Post: 10-11-2010, 08:45 AM
  3. Checklist for the character encoding in HTML
    By Kohlmann in forum Software Development
    Replies: 5
    Last Post: 19-08-2010, 01:02 PM
  4. Scripture in Character encoding
    By Dewei in forum Windows Software
    Replies: 6
    Last Post: 18-08-2010, 11:22 AM
  5. Introduction to Character Encoding
    By The$Hulk in forum Guides & Tutorials
    Replies: 2
    Last Post: 17-08-2010, 04:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,516,785.75846 seconds with 16 queries