Saturday, December 25, 2004

Converting characters to html codes

The characters can be stored in unicode format on a text file. You can use the character decimal value to represent them in html.

An example
Bеселое Pождество will be in unicode format:

0x0042 0x0435 0x0441 0x0435 0x043B 0x043E 0x0435
0x0050 0x043E 0x0436 0x0434 0x0435 0x0441 0x0442 0x0432 0x043E

In html:
Bеселое Pождество

I'm missing something here. Because of the small caps in unicode, like 'p' that is written as 0x0040 in the unicode file, wich will be B in html, but this shows as an '@'. The correct decimal number is 0112, 0x0070.

In win32 you can get the unicode for each character in the charmap, they will be in hexadecimal format. You should change them to decimal, then surround the number withing &#<character_number>; and that's it.

ISO_10646 table.

UnsatisfiedLinkError

Output:
java.lang.UnsatisfiedLinkError: no resin in java.library.path

In Win32:
Add "C:\java\resin-3.0.10\win32" to PATH environment variable.
And, in Linux:
Add the lib directory to PATH environment variable.

Ant build javac

If you get this Output:

[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.

Just Add:

<javac srcdir="${src}" destdir="${assembly}" deprecation="yes" debug="yes" >
<compilerarg value="-Xlint" />
<classpath>
<path refid="compile-classpath"/>
</classpath>
</javac>

Friday, December 10, 2004

Google Suggest

Nice feature, but I fear that it may be useless.