Wednesday, February 27, 2008

UTF-8 Problem Between Apache and Tomcat via Mod_JK

If the UTF-8, GBK, Chinese or whatever character set it may be, is showing via Tomcat (i.e. accessing from port 8080) but not showing in Apache (via mod_jk) then one step might be to check that the AJP connector has the URIEncoding set too as mod_jk uses that connector rather than the one that might be set on port 8080.

For Example:

<connector port="9011" enablelookups="false" redirectport="8443" protocol="AJP/1.3" uriencoding="UTF-8"></connector>

Monday, February 04, 2008

SOX WAV to GSM Conversion Again

This way seems to work best for me, without the speed being effected (i.e slow, fast, half speed, etc)

sox -t wav input.wav -r 8000 -c1 -t gsm output.gsm resample -ql