Search code examples
phpwebfpdffpdi

wrong symbol exported in fpdf... ñ as ñ ..?


I dont know whats the problem but whenever I call the letter ñ from $_POST function it puts it in my fpdf as ñ .. any idea why?


Solution

  • Your string has a wrong encoding. It's UTF-8 but I think you need Latin-1 or so..

    You can use utf8_decode() on your strings:

    echo utf8_decode("ñ"); // prints ñ