comparison src/org/eclipse/jetty/util/StringUtil.java @ 1013:6939226e0ac4

simplify URIUtil
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 01:06:33 -0600
parents 8d0bdd357e6e
children
comparison
equal deleted inserted replaced
1012:8d0bdd357e6e 1013:6939226e0ac4
173 } 173 }
174 } 174 }
175 175
176 public static boolean isUTF8(String charset) 176 public static boolean isUTF8(String charset)
177 { 177 {
178 return __UTF8.equalsIgnoreCase(charset)||__UTF8Alt.equalsIgnoreCase(charset); 178 return __UTF8.equalsIgnoreCase(charset)||"UTF8".equalsIgnoreCase(charset);
179 } 179 }
180 180
181 181
182 public static byte[] getBytes(String s) 182 public static byte[] getBytes(String s)
183 { 183 {