Tags Archives: java

Java URI encoder

Recently I discovered that the URL encoder provided in Java is meant for forms and headers, and not actual URLs.   After looking at the URI spec here, I created a quick and compact URI encoder for java: Edit: Updated with char-to-hex speed improvements, fixed < 15 bug, and now encodes unicode chars if > [...]