Unicode problems?

Status
Not open for further replies.

Avegaille

New Member
Messages
24
Reaction score
0
Points
1
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; [B]charset=utf-8"[/B]> <title>.:Inevitable - MikotoxKuroko Fanlisting:.</title> <link rel="stylesheet" type="text/css" href="[URL="http://x10hosting.com/forums/view-source:http://electromaster.x10.mx/inevitable/external.css"]external.css[/URL]"> <LINK REL="SHORTCUT ICON" href="[URL="http://x10hosting.com/forums/view-source:http://electromaster.x10.mx/inevitable/favicon.ico"]favicon.ico[/URL]"> </head>
 

GtoXic

x10 Support
Messages
636
Reaction score
17
Points
0
have you tried a different font. Some do not have extended language support.
 

Avegaille

New Member
Messages
24
Reaction score
0
Points
1
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...
 

GtoXic

x10 Support
Messages
636
Reaction score
17
Points
0
hmm, not sure then. Try looking it up on google. I've not had the issue before.
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
in your php script, add in the following at the very top (before anything else in the file):
PHP:
<?php header("Content-Type: text/html; charset=utf-8"); ?>
 

Avegaille

New Member
Messages
24
Reaction score
0
Points
1
in your php script, add in the following at the very top (before anything else in the file):
PHP:
<?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:
Warning:  Cannot modify header information - headers already sent  by (output started at /home/bunnyp69/public_html/misaka/about.php:3) in  /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:
<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:
<?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:
<div id="footer"><p class="disclaimer"><i>Toaru Majutsu no Index, Toaru Kagaku no Railgun, Mikoto Misaka and all related characters<br> (c) MEDIAWORKS/Kazuma Kamichi/Kiyotaka Haimura/Motoi Fuyukawa.<br> All content in this site are meant for fanlisting purposes, and such, only the graphics and layout of the site is by</i> <b class="disclaimer">Avegaille</b>.</p></div>
</div>

</body>
</html>

(and also, I can see the Jap text in this forum too... weird)
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Open up the file that has the characters in cPanel --> File Manager

See what the Editor says the encoding is.
 

Avegaille

New Member
Messages
24
Reaction score
0
Points
1
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...
 

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
Just save those php files without BOM (byte order mark). PHP doesn't support files having BOM in it.
 

Avegaille

New Member
Messages
24
Reaction score
0
Points
1
I think that may be the problem seeing as I only use Notepad to do my coding... I found this program while looking around about BOM since that's the first time I've heard of it. I hope this helps (but I'm not able to fix this until the weekend).

Anyway, you guys can close the thread, thanks for the help xD;
 
Status
Not open for further replies.
Top