Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Unicode problems?

  1. #1
    Avegaille's Avatar
    Avegaille is offline x10Hosting Member Avegaille is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    23

    Unicode problems?

    Does the host support unicode? Cause I can't seem to get Japanese characters to show up (even though they have direct/romaji translation), which btw, I only use Japanese characters for the names of the characters.

    This is what's on my HTML unless I have to do something else to make special characters appear on the site...

    Code:
    <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>.:Inevitable - MikotoxKuroko Fanlisting:.</title> <link rel="stylesheet" type="text/css" href="external.css"> <LINK REL="SHORTCUT ICON" href="favicon.ico"> </head>

  2. #2
    GtoXic is offline x10 Lieutenant GtoXic is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    447

    Re: Unicode problems?

    have you tried a different font. Some do not have extended language support.
    █ x10 Lieutenant
    █ If I have helped, please click the star in the bottom left of my post.

    █ Free Hosting support volunteer 410 posts from Community Advocate (This is NOT live!)


  3. #3
    Avegaille's Avatar
    Avegaille is offline x10Hosting Member Avegaille is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    23

    Re: Unicode problems?

    Well the default font for all of my fanlistings is in Tahoma... but it's strange, the Japanese characters all show up when on a different host... o__o;; Maybe there's some sort of coding that I need to do here...

  4. #4
    GtoXic is offline x10 Lieutenant GtoXic is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    447

    Re: Unicode problems?

    hmm, not sure then. Try looking it up on google. I've not had the issue before.
    █ x10 Lieutenant
    █ If I have helped, please click the star in the bottom left of my post.

    █ Free Hosting support volunteer 410 posts from Community Advocate (This is NOT live!)


  5. #5
    Avegaille's Avatar
    Avegaille is offline x10Hosting Member Avegaille is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    23

    Re: Unicode problems?

    I checked google but it seems it says the same thing...

    All of my codes are saved in a UTF-8 format... and yet, I see them as ??? when viewing it from the site itself.

    http://electromaster.x10.mx/misaka/about.php

    And yet, it works fine when on another host...

  6. #6
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Unicode problems?

    in your php script, add in the following at the very top (before anything else in the file):
    PHP Code:
    <?php header("Content-Type: text/html; charset=utf-8"); ?>

  7. #7
    Avegaille's Avatar
    Avegaille is offline x10Hosting Member Avegaille is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    23

    Re: Unicode problems?

    Quote Originally Posted by Skizzerz View Post
    in your php script, add in the following at the very top (before anything else in the file):
    PHP Code:
    <?php header("Content-Type: text/html; charset=utf-8"); ?>
    Hmm, I tried putting that on the top most page of the script, but it still doesn't work.

    I got this message instead when I placed that code in the top of the coding...

    PHP Code:
    Warning:  Cannot modify header information headers already sent  by (output started at /home/bunnyp69/public_html/misaka/about.php:3in  /home/bunnyp69/public_html/misaka/header.php on line 1 
    Here's the original script. Note that these are 3 separate php files and are joined together with the require_once code

    PHP Code:
    <html>
    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <
    title>.:Electromaster Mikoto Misaka Fanlisting:.</title>
    <
    link rel="stylesheet" type="text/css" href="external.css">
    <
    LINK REL="SHORTCUT ICON" href="favicon.ico">
    </
    head>

    <
    body>
    <
    div id="maincontainer">
    <
    div id="topsection"><img src="layoutbanner.png"><div class="innertube"></div></div>
    <
    div id="navi"><center><p><a href="index.php">» Index</a> | 
    <
    a href="about.php">» About</a> | 
    <
    a href="list.php">» List</a> | 
    <
    a href="join.php">» Join</a> | 
    <
    a href="update.php">» Update</a> | <a href="codes.php">» Codes</a> | 
    <
    a href="extras.php">» Extras</a></p></center></div
    PHP Code:
    <?php
    require_once( 'header.php' );
    ?>

    <div id="contentwrapper">
    <div id="contentcolumn">
    <div class="innertube"><p class="title">About Mikoto Misaka:</p>
    <center><img src="styles.jpg">
    <p><b>御坂美琴</b> <i>(Jap. Misaka Mikoto)</i><br>
    Electromaster<br>
    Level 5</p></center>

    <p>She is one of the main characters for <i>Toaru Majutsu no Index</i> but she is given more focus in <i>Toaru Kagaku no Railgun</i>. She is a psychic user, which her powers are ranked Level 5, and is third strongest, in which seven other people hold this ranking. Her power is generating electricity which she uses to make instant railguns with using coins as projectiles and create a chainsword whip through attracting iron particles around her. She attends Tokiwadai Middle School, a famous girls' school in Academy City for the rich and elite psychics.<br><br>

    She is very short-tempered and is a bit tomboyish, and has some insecurities (especially around Touma and people who call attention to how she likes childish things). She is often called "Onee-sama" by her roommate, Kuroko Shirai (who also happens to be totally obsessed with her), as well as her Imoutos. Her other aliases are "Railgun" (her specialty), and Biri-biri (a nickname Touma gave to her due to the sound of electricity Mikoto makes). She also has an obsession for Gekota, a frog mascot that suffers from motion sickness easily and cries out "Geko, Geko", as well as anything childishly cute.</p>

    <p><b>Toaru Majutsu no Index</b><br>
    ...<i>(とある魔術の禁書目録(インデックス), lit. A Certain Magical Index)</i> is a Japanese light novel series written by Kazuma Kamachi and illustrated by Kiyotaka Haimura; the series is published by ASCII Media Works under their Dengeki Bunko imprint. Set in a city of scientifically advanced superhuman students, but in a world where magic is also real. The series was made into an anime and aired between October 2008 to March 2009, containing twenty-four episodes.</p>

    <p><b>Toaru Kagaku no Railgun</b><br>
    ...<i>(とある科学の超電磁砲(レールガン) lit. A Certain Scientific Railgun)</i> is a manga series spin-off of the Toaru Majutsu no Index light novel, written and illustrated by Motoi Fuyukawa. It is published in Dengeki Daioh, started since March 2007. Its current anime adaptation from J.C.STAFF airs every Friday night starting October 2009 on Tokyo MX.</p>

    <p class="refe"<b>Reference:</b> <i><a href="http://en.wikipedia.org/wiki/Toaru_Majutsu_no_Index" target="_blank"> Wikipedia</a></i></p>
    </div>
    </div>
    </div>

    <?php
    require_once( 'footer.php' );
    ?>
    PHP Code:
    <div id="footer"><class="disclaimer"><i>Toaru Majutsu no IndexToaru Kagaku no RailgunMikoto Misaka and all related characters<br> (cMEDIAWORKS/Kazuma Kamichi/Kiyotaka Haimura/Motoi Fuyukawa.<brAll content in this site are meant for fanlisting purposes, and suchonly the graphics and layout of the site is by</i> <class="disclaimer">Avegaille</b>.</p></div>
    </
    div>

    </
    body>
    </
    html
    (and also, I can see the Jap text in this forum too... weird)

  8. #8
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Unicode problems?

    Open up the file that has the characters in cPanel --> File Manager

    See what the Editor says the encoding is.
    Nothing is always absolutely so.

  9. #9
    Avegaille's Avatar
    Avegaille is offline x10Hosting Member Avegaille is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    23

    Re: Unicode problems?

    Quote Originally Posted by descalzo View Post
    Open up the file that has the characters in cPanel --> File Manager

    See what the Editor says the encoding is.
    Hmm, it says the detected encoding is utf-8 and the characters just show up fine on the editor, but not the site itself...

  10. #10
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: Unicode problems?

    Just save those php files without BOM (byte order mark). PHP doesn't support files having BOM in it.

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Help, Unicode support in Batch Files
    By espfutbol98 in forum Computers & Technology
    Replies: 5
    Last Post: 04-15-2011, 12:08 AM
  2. Unicode Not Transfered by the Server
    By gichan in forum Free Hosting
    Replies: 6
    Last Post: 04-10-2010, 01:05 PM
  3. PHP converting chinese character to unicode
    By diabolo in forum Programming Help
    Replies: 0
    Last Post: 01-01-2010, 04:02 PM
  4. Replies: 9
    Last Post: 11-09-2008, 01:42 PM
  5. Apache Unicode Support
    By virtual in forum Free Hosting
    Replies: 5
    Last Post: 08-30-2007, 11:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers