Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP には文字エンコーディングの概念がありません。文字列はバイナリ データです。すべてが機能しているように見える秘訣は、それが Web ページであろうと端末であろうと、出力デバイスを正しい文字エンコーディングに設定することです。
Web ページを生成している場合は、content-type ヘッダーを送信して、ページがどのようにエンコードされているかをブラウザーに伝えることができます。
header("Content-type: text/html;charset=utf-8");
I'm using a repository for my models like this
public IEnumerable<object> GetDetailList(int userId, int page, int rp, string sortname, string sortorder, ref int num, ref i