Here you can find the source of convertHextoASCII(String text)
public static String convertHextoASCII(String text)
//package com.java2s; /**/*from w ww . java2 s . c o m*/ * Copyright (c) 2010-2015 Bryan Beck. * All rights reserved. * * This project is licensed under LGPL v2.1. * See jMovieManager-license.txt for details. * */ public class Main { public static String convertHextoASCII(String text) { String convertedString = text; String replacement; int decimal; int iStart; while (convertedString.contains("&#x")) { iStart = convertedString.indexOf("&#x"); replacement = convertedString.substring(iStart + 3, iStart + 5); decimal = Integer.parseInt(replacement, 16); replacement = ((char) decimal) + ""; convertedString = convertedString.replaceFirst("&#x[A-Z0-9]{2};", replacement); } convertedString = convertedString.replace("'", "'"); convertedString = convertedString.replace('"' + "", ""); convertedString = convertedString.replace(""", ""); return convertedString; } }