ZenkakuHankakuTest.cfm
<cfset zen1 = "Zenkaku" />
<cfset zen2 = "ゼンカク" />
<cfset zen3 = "2015/12/31 23:59@" />
<cfset han1 = "Hankaku" />
<cfset han2 = "ハンガク" />
<cfset han3 = "2015/12/31 23:59@" />
<cfset aNormalizer = createObject("java", "java.text.Normalizer") />
<cfoutput>
zen1を変換:#aNormalizer.normalize(zen1, createObject("java", "java.text.Normalizer$Form").valueOf("NFKC"))#<br />
zen2を変換:#aNormalizer.normalize(zen2, createObject("java", "java.text.Normalizer$Form").valueOf("NFKC"))#<br />
zen3を変換:#aNormalizer.normalize(zen3, createObject("java", "java.text.Normalizer$Form").valueOf("NFKC"))#<br />
han1を変換:#aNormalizer.normalize(han1, createObject("java", "java.text.Normalizer$Form").valueOf("NFKC"))#<br />
han2を変換:#aNormalizer.normalize(han2, createObject("java", "java.text.Normalizer$Form").valueOf("NFKC"))#<br />
han3を変換:#aNormalizer.normalize(han3, createObject("java", "java.text.Normalizer$Form").valueOf("NFKC"))#<br />
</cfoutput>
結果
zen1を変換:Zenkaku
zen2を変換:ゼンカク
zen3を変換:2015/12/31 23:59@
han1を変換:Hankaku
han2を変換:ハンガク
han3を変換:2015/12/31 23:59@
java.text.Normalizerを都合2回Createしなければいけないのが気付きづらい。