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 の utf8_decode に相当
私は文字列を持っています:"tópicos"私はに変換する必要があります"tópicos"
"tópicos"
"tópicos"
どうやってこれを行うのですか?ありがとう、上級者。
その文字列が元のエンコーディング (Windows-1252) で表すバイトを取得し、それらのバイトを UTF8 として読み取る必要があります。
Encoding.UTF8.GetString(Encoding.GetEncoding(1252).GetBytes("tópicos" ))