Author Topic: Funny question marks in content.  (Read 761 times)

0 Members and 1 Guest are viewing this topic.

Offline DarkPrince2005Topic starter

  • Enthusiast
  • Posts: 295
  • Gender: Male
    • View Profile
Funny question marks in content.
« on: March 16, 2010, 02:33:48 AM »
Greetings all

I'm using Joomla with the Joomfish component for the translations and returning some of the translations using a custom php script.
the site displays correctly but what I'm retreavingand displaying as weirdd question marks in it.

I know it's to do with the charset but how can I alter the retrieved charset without actually altering anything in the database content or structure.

I tried
Code: [Select]
mysql_set_charset($link,utf8) but it seemed to alter and change the database.

any suggestions?
There is a solution to every problem, but that solution isn't always easily found. But being persistent helps

Offline Rustywolf

  • Enthusiast
  • Posts: 72
    • View Profile
Re: Funny question marks in content.
« Reply #1 on: March 16, 2010, 02:37:31 AM »
is it a black diamond with a question mark?
its added when a script tries to add an invalid character.
if it happens all the time, id suggest
$value substr($value0, -1)
 to remove the last character

Offline DarkPrince2005Topic starter

  • Enthusiast
  • Posts: 295
  • Gender: Male
    • View Profile
Re: Funny question marks in content.
« Reply #2 on: March 16, 2010, 02:46:03 AM »
Yes it's a black diamond with a question mark.

Could you please explain a bit more what exactly your suggested script does.
There is a solution to every problem, but that solution isn't always easily found. But being persistent helps

Offline Rustywolf

  • Enthusiast
  • Posts: 72
    • View Profile
Re: Funny question marks in content.
« Reply #3 on: March 16, 2010, 03:02:53 AM »
It cuts the last digit off a string.
http://php.net/manual/en/function.substr.php

Offline DarkPrince2005Topic starter

  • Enthusiast
  • Posts: 295
  • Gender: Male
    • View Profile
Re: Funny question marks in content.
« Reply #4 on: March 16, 2010, 03:59:33 AM »
The problem is that I actually need to display the characters.
There is a solution to every problem, but that solution isn't always easily found. But being persistent helps