{"id":25,"date":"2010-06-14T10:57:24","date_gmt":"2010-06-14T09:57:24","guid":{"rendered":"http:\/\/67bricks.com\/blog\/2010\/06\/14\/comparing-characters-without-accents-making-e-and-e-the-same\/"},"modified":"2021-12-16T10:50:09","modified_gmt":"2021-12-16T10:50:09","slug":"comparing-characters-without-accents-making-e-and-e-the-same","status":"publish","type":"post","link":"https:\/\/blog.67bricks.com\/?p=25","title":{"rendered":"Comparing characters without accents &#8211; making \u00e9 and e the same"},"content":{"rendered":"<p>For a recent project, we needed to compare words without paying attention to their accents. In Java, you can do it like this:<\/p>\n<pre>String normalizedText = Normalizer.normalize(text, Normalizer.Form.NFD)\n                                  .replaceAll(\"p{InCombiningDiacriticalMarks}+\", \"\");<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>For a recent project, we needed to compare words without paying attention to their accents. In Java, you can do it like this: String normalizedText = Normalizer.normalize(text, Normalizer.Form.NFD) .replaceAll(&#8220;p{InCombiningDiacriticalMarks}+&#8221;, &#8220;&#8221;);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":1,"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.67bricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}