de.betabeans.scroogexhtml.converter
Class UnicodeConverter

java.lang.Object
  extended by de.betabeans.scroogexhtml.converter.UnicodeConverter

public final class UnicodeConverter
extends java.lang.Object

Unicode conversion.

Author:
Michael Justin

Method Summary
static java.lang.String charToUnicode(char c)
          Convert a character to Unicode.
protected static void setNodeCharset(int value)
          Store the code page for this character set in the variable "nodeCodepage".
static java.lang.String symbolToUnicode(java.lang.String s)
          Convert a string which uses the 'Symbol' font to Unicode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setNodeCharset

protected static void setNodeCharset(int value)
Store the code page for this character set in the variable "nodeCodepage".

Parameters:
value - current text node character set

charToUnicode

public static java.lang.String charToUnicode(char c)
Convert a character to Unicode. All character values greater than 127 are replaced by HTML entities encoded by "&#intvalue;"

Parameters:
c - Character.
Returns:
String with encoded Unicode values.

symbolToUnicode

public static java.lang.String symbolToUnicode(java.lang.String s)
Convert a string which uses the 'Symbol' font to Unicode.

Parameters:
s - Unicode string.
Returns:
String with encoded Unicode values.


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.