Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Charset issues :( HELP!
Old 09-23-2008, 04:42 PM Charset issues :( HELP!
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Hello all,

Okay im having some issues which are irriating, as far as i know both my blog - http://xdnet.co.uk/blog and the main site http://xdnet.co.uk are charset utf-8

BUT im retriving the latest posts from the WordPress DB and plonking them on my homepage (and others) BUT any special chars are messed up, and just noticed also means it wont validate lol


HELP!

Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 09-23-2008, 08:39 PM Re: Charset issues :( HELP!
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
What are the special chars? Maybe upgrade to UTF-16, also known as Unicode?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-23-2008, 09:46 PM Re: Charset issues :( HELP!
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Honestly, I've never seen a Wordpress blog validate...
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-24-2008, 07:47 PM Re: Charset issues :( HELP!
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
the special chars are just like ' or general punchuation, it isnt special and i dont see why it dont work because the blog is the same charset and it works :s and yet it dont work when pulled directly from database and displayed on page in the same charset :s

HEEELP please needs fixing

TP for working fix

This has nothing to do with wordpress validating...
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-24-2008, 08:38 PM Re: Charset issues :( HELP!
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
What does your table look like? It's possible, but unlikely, that you've got an issue with data storage in some unusual, non default collation. Or it could be code page, in the browser and or markup. But I'm guessing wildly here.

Is there a URL people can look at to help you diagnose?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-25-2008, 04:00 AM Re: Charset issues :( HELP!
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Quote:
Originally Posted by Learning Newbie View Post
What does your table look like? It's possible, but unlikely, that you've got an issue with data storage in some unusual, non default collation. Or it could be code page, in the browser and or markup. But I'm guessing wildly here.

Is there a URL people can look at to help you diagnose?
Erm yes and no...

Just noticed that my latest two posts dont have special chars in the extracts so its not showing the issue...

But, pages which i pull the info through: http://xdnet.co.uk/ (the latest news... box)

and then the actual blog -> http://xdnet.co.uk/blog

as far as i can tell both have same charset set using meta etc :s

The database is the standard wordpress 2.6.x

Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-27-2008, 10:07 AM Re: Charset issues :( HELP!
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Both pages are indeed UTF-8, but how are you getting the posts from RSS?

That is, your PHP code needs to know that the content is UTF-8. For example, some RSS-parsing libraries try to do some trickery to convert charsets and usually end up failing. It sounds as though your RSS-parser is reading your UTF-8 blog posts as ISO-8895-1.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 09-27-2008, 10:05 PM Re: Charset issues :( HELP!
Banned

Posts: 923
Name: Geoff Vader
Location: In my dreams
Trades: 0
kids these days. it were simpler in my day. you just wrote all the html yourself. i remember my first paragraph tag. i even showed it to salman rushdie.

Last edited by witnesstheday; 09-27-2008 at 10:36 PM.. Reason: wanted to namedrop
witnesstheday is offline
Reply With Quote
View Public Profile
 
Old 09-29-2008, 06:07 AM Re: Charset issues :( HELP!
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
*cough* i DO write it all myself... just use advanced tools to make it easier ie get it from database lol

anyways, seems to be fixed now, i created a special WordPress page and use file_get_contents() to get the output and dump it on the page, so now its using WP functions to get the stuff from DB...

So all working now i would guess wordpress does something to it to make it work lol

Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Charset issues :( HELP!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48931 seconds with 12 queries