troubleshooting Question

including utf-8 file make problems

Avatar of Konstantin Krolikov
Konstantin KrolikovFlag for Israel asked on
Programming Languages-OtherPHPJScript
8 Comments1 Solution531 ViewsLast Modified:
hello experts, i can realy use your help for this one..
i develop some game, the game is in hebrew  so i make the file as a utf-8.
i created some classes so they were in ascii encoding.
let's say i have page that called world.php(utf-8 encoding)
so, i write inlucde and add the classes and it work just fine, the problem is that when i include even 1 file that is not ascii, it start doing wird stuff, in one page it is make auto break line(<br>) other page it is doing that same and print "k".

i take new utf-8 file and delete the entire file!!! there is no even 1 byte/char inside.
and yet! the same result.

i took new utf-8 file that was only <h1>hi</h1>
no break line, but... after i included the utf-8 file, same as always... :(
when i include/require ascii file it's ok..

i have windows 7 and im running it on wamp, php 5.3.4

example of the code:
utf-8 file:test.php
<?php require_once "someutf_file.php ?>
<!-- here he doing the break line  !-->
and as always break line(<br>)......... again!!
try it, take some utf8 file, then include to him other utf-8 file and you notice the problem.

please help me, it's driving me crazy!!
thanks ahead..
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros