Jump to content


spanish latters question


4 replies to this topic

#1 markc1822

    Young Padawan

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:New York

Posted 18 March 2008 - 08:54 AM

Hi, how are you guys. I have a question i am creating a search form for someone. The information that i am entering into the database some of it is in Spanish. The letter ñ does not show up after i search for an item, Its shows up as � how can i fix this?

Thanks
Mark

Edited by markc1822, 18 March 2008 - 08:55 AM.


#2 dotbart

    Young Padawan

  • Members
  • Pip
  • 141 posts
  • Gender:Male
  • Location:Diepenbeek
  • Interests:Webdesign, Webdeveloppement, DJ, ...

Posted 18 March 2008 - 10:44 AM

You could look into htmlentities() (PHP function) wich translates all of those symbols in html-readable code!

#3 BigDog

    Young Padawan

  • Members
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Orange County, California
  • Interests:Running, building computers, PC games and BMX and programming.

Posted 18 March 2008 - 08:39 PM

Can I get some more information? Is this a $_GET or $_POST method? In the database, does it store the "ñ"?

Also, in the databse, is the row/table in "latin1_spanish_ci" for the Collation?

Edited by BigDog, 18 March 2008 - 08:42 PM.


#4 markc1822

    Young Padawan

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:New York

Posted 21 March 2008 - 11:33 AM

Its GET Method
The Collation is "latin1_swedish_ci"

The database stored the Spanish letters, just when it displays it on the web page it comes up as �

#5 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 21 March 2008 - 07:25 PM

That's a character encoding problem. You're probably using the default iso (i think) charset. You need UTF-8.

http://www.google.co...ent+charset+utf





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users