<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tohokuaiki</author_name>
  <author_url>https://blog.hatena.ne.jp/tohokuaiki/</author_url>
  <blog_title>tohokuaikiのチラシの裏</blog_title>
  <blog_url>https://tohokuaiki.hateblo.jp/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>文字コードを気にするときは、FileReader/FileWriterを使ってはいけないという話。 この場合、新しいものは文字化けする。 File file = new File(&quot;file_0&quot;); BufferedReader b = new BufferedReader(new FileReader(file)); File file_w = new File(&quot;file_0_output&quot;); FileWriter fw = new FileWriter(file_w); String s; while((s = b.readLine())!=null){ fw.write(s+&quot;\n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftohokuaiki.hateblo.jp%2Fentry%2F20140205%2F1391589045&quot; title=&quot;Javaで文字コードを気にしつつファイルの読み込み・書き込み - tohokuaikiのチラシの裏&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-02-05 17:30:45</published>
  <title>Javaで文字コードを気にしつつファイルの読み込み・書き込み</title>
  <type>rich</type>
  <url>https://tohokuaiki.hateblo.jp/entry/20140205/1391589045</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
