0

I got a varbinary field in my database, and got some problems with displaying special (Polish) characters like ąśćężźć.

Example: SELECT local_name from items WHERE id = 140 returns: Pieczęć, the problem appears when I want to print this data on my website (encoding UTF-8 there), then the Pieczęć turns into the following string: Piecz�� tried also to use utf8_encode() PHP function but it gives the following result: Pieczêæ.

How can I solve that so it will print the special characters without problem?

Categle
  • 514
  • 1
  • 8
  • 22

1 Answers1

0

same adivce as here: https://stackoverflow.com/a/11254131/1489924

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >

and/or

SET NAMES 'utf8'

worked for me in most situations. Good luck!

Community
  • 1
  • 1
Razvan Pandor
  • 23
  • 1
  • 3