1 2 package com.nwalsh.saxon; 3 4 import com.icl.saxon.charcode.PluggableCharacterSet; 5 6 66 67 68 69 public class Windows1252 implements PluggableCharacterSet { 70 71 public final boolean inCharset(int c) { 72 73 return (c >= 0x00 && c <= 0x7F) || 74 (c >= 0xA0 && c <= 0xFF) || 75 (c == 0x20AC) || 76 (c == 0x201A) || 77 (c == 0x0192) || 78 (c == 0x201E) || 79 (c == 0x2026) || 80 (c == 0x2020) || 81 (c == 0x2021) || 82 (c == 0x02C6) || 83 (c == 0x2030) || 84 (c == 0x0160) || 85 (c == 0x2039) || 86 (c == 0x0152) || 87 (c == 0x017D) || 88 (c == 0x2018) || 89 (c == 0x2019) || 90 (c == 0x201C) || 91 (c == 0x201D) || 92 (c == 0x2022) || 93 (c == 0x2013) || 94 (c == 0x2014) || 95 (c == 0x02DC) || 96 (c == 0x2122) || 97 (c == 0x0161) || 98 (c == 0x203A) || 99 (c == 0x0153) || 100 (c == 0x017E) || 101 (c == 0x0178); 102 103 104 } 105 106 public String getEncodingName() { 107 return "WINDOWS-1252"; 108 } 109 110 } 111 | Popular Tags |