Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: httpwebwitch
I've been told that the secret lies in having the file to be completely UTF-8 compliant, but then again, i'm not sure how.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<player autoStart="yes" productId="78" cPath="" artist_id="68" keywords="" bpm_id="" categories_id="" vocals_id="" mood_id="" page_name="index.php">
<song path="stream_song.php?song=download/La_Belle_Alliance/Lost_Recreation/hifi/04 - Test Artist - Don't Put Me Under Pressure.mp3" title="04 - Test Artist - Don't Put Me Under Pressure " />
<song path="stream_song.php?song=download/La_Belle_Alliance/Lost_Recreation/hifi/05 - Test Artist - The Ladders To Heaven.mp3" title="05 - Test Artist - The Ladders To Heaven " />
Well, the example you give is not XHTML 1.0 compliant, because it has no <html><head></head><body></body></html> structure. These are necessary for a full XHTML-compliant file.
The character set should be given in a meta http-equiv element.
Here is the basic structure of an XHTML 1.0 Transitional file. Note that the XML preamble is omitted. This is because some browsers can't deal with it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Also, if you want to exude XHTML, you can't use the <song> element. You need to convert it to XHTML-acceptable elements like <div> or <ul>.
If you really are having UTF-8 problems then how are you generating the file? If you're hand coding it then you need to make sure that your editor is saving it in UTF-8 format.