Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlaizumibamford/7d24f43a02029a0f9e56 to your computer and use it in GitHub Desktop.
Save carlaizumibamford/7d24f43a02029a0f9e56 to your computer and use it in GitHub Desktop.
How to change the default charset to UTF-8 on XAMMP (PHP)
1. Open "php.ini" in "C:\xampp\php\" directory.
2. Enable the following codes by removing ";".
;mbstring.language = Japanese
;mbstring.internal_encoding = EUC-JP
;mbstring.http_input = auto
;mbstring.http_output = SJIS
;mbstring.encoding_translation = Off
;mbstring.detect_order = auto
;mbstring.substitute_character = none
;mbstring.func_overload = 0
3. Change the following setting.
mbstring.internal_encoding = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment