How to encode cyrillic in mysql?

后端 未结 4 1175
挽巷
挽巷 2021-01-14 08:14

what\'s up? :-)
I have one problem and i hope you can help me with it.

One friend of mine have a simple solid html website and i implemented little php; CRUD sys

4条回答
  •  再見小時候
    2021-01-14 08:47

    if its really mysql fetch assoc messing up you should try: mysql-set-charset

    from the docs:

    Note:

    This is the preferred way to change the charset. Using mysql_query() to execute SET NAMES .. is not recommended.

    also make sure your files are saved as utf8 and check iconv_set_encoding / iconv_get_encoding

提交回复
热议问题