
26 Feb
2013
26 Feb
'13
1:19 p.m.
Hi
I wonder how to improve the algorithm without making it much more CPU intensive.
Does Java offer a fast code page mapability lookup?
I think the way I outlined would be no less efficient that what happens now. The low level CharsetEncoder in java can be set to replace unmappable characters with a '?' (as now) or to return on finding an unmappable character. The character can be transliterated to the ascii range and then loop back to the Encoder. Its all just array lookups so quicker than it sounds! ..Steve