LoginSignup
1
0

More than 5 years have passed since last update.

Shift_JIS

Last updated at Posted at 2017-03-15

たまにあるShift_JISでの納品

index.htmlを変更
<meta charset="Shift_JIS">
Shift_JISに上書き
$ brew install nkf
$ nkf -s --overwrite index.html

修正後の表示の確認
Firefox > 表示 > 文字エンコーディング > Shift_JIS

※CSSのcontentとかに日本語使ってるとCSSもエンコードしなければならないので、なるべく使わない。
どうしてもの場合はUnicode変換

参考
【 nkf 】 文字コードを変換する
beforeやafter疑似要素のcontentプロパティで日本語の文字化けを回避する方法

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0