mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

Prawnで作った日本語のPDFがPumaを通すとあら不思議!

hexdump -Cしてみると1行目は

%PDF-1.3\n

で同じなんだけど2行目は

%\xFF\xFF\xFF\n

のはずが

%\xC3\xBF\xC3\xBF\xC3\xBF\xC3\xBF\n

になってるぬ

$ irb
> "\xc3\xbf".force_encoding("utf-8").codepoints.map{|x| x.to_s(16)}
=> ["ff"]

誰かが\xFFをUnicodeのコードポイントと思ってUTF-8にエンコードしちゃってるんだぬう

ブラウザ内のJavascriptがjsonを受け取ってファイルにしてるようだ

いあもしかしたらconsole.log()かもわね…