<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seraphy</author_name>
  <author_url>https://blog.hatena.ne.jp/seraphy/</author_url>
  <blog_title>seraphyの日記</blog_title>
  <blog_url>https://seraphy.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>JAVAの文字列はUNICODEだが、これをNLS環境下のORACLEのようなデータベースに格納する場合の文字長判定をデータベースへのアクセス前に確認するために一旦、文字列をバイト配列に変換して長さを判定しなければならない。 Weblogic6.0/6.1ではJ2SE1.3なので、この手のチェックは、かなり泥臭くなる。というのも、マルチバイト文字に変換したあとに、単純に切って文字長を判定すると、その末尾がLeadByteだけで切れてしまったりして不正な文字になる可能性がある。 現在はJ2SE1.4環境であるのならば、この手の変換にCharsetEncoder/Decoderを使えばスマートで合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseraphy.hatenablog.com%2Fentry%2F20051117%2Fp1&quot; title=&quot; CharsetEncoder/Decoderの不可解 - seraphyの日記&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>2005-11-17 00:00:00</published>
  <title> CharsetEncoder/Decoderの不可解</title>
  <type>rich</type>
  <url>https://seraphy.hatenablog.com/entry/20051117/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
