<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nagasama</author_name>
  <author_url>https://blog.hatena.ne.jp/nagasama/</author_url>
  <blog_title>メモ</blog_title>
  <blog_url>https://nmemo.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Tips</anon>
  </categories>
  <description>個人的にはSysLogに日本語を記録する気はないのだけど…SysLogAppenderは、単純にString#getBytes()でバイト列を取得するのでプラットフォームから得られるエンコーディング指定に従ったバイト配列となり、それが送信される。この場合、クライアント側がWindowsだったりするとSysLog側で文字が正しく表示されないこともある。 つまり明示的にエンコーディングを指定することで文字化けが解消できるはずである。しかし、SysLogAppenderは、ソースコードを直接修正するのは簡単だが、継承を利用して拡張する場合は、うまく拡張できないのである。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnmemo.hatenadiary.jp%2Fentry%2F20070907%2F1189129626&quot; title=&quot;SysLogAppenderをうまく拡張できない。。。 - メモ&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>2007-09-07 10:47:06</published>
  <title>SysLogAppenderをうまく拡張できない。。。</title>
  <type>rich</type>
  <url>https://nmemo.hatenadiary.jp/entry/20070907/1189129626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
