Jump to content

How to make PHP recognize Lithuanian alphabet instead of strange symbols?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
thatsme

thatsme

    Programmer

  • Members
  • PipPipPipPip
  • 176 posts
Hi, i have html file containing form. Data typed in form is passed to php file. Encoding of file is set with this line -

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
The browser is also set to utf8. PHP is set to utf8 too -
header('Content-Type: text/html; charset=');
, but still php file reads strange symbols instead of lithuanian letters. I use wamp 2.1. May there be an issue with wamp? Need help

#2
RHochstenbach

RHochstenbach

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
Try using the utf8_encode function to echo the variable, like this:

echo utf8_encode($variable);






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users