front and back-end web development, Leeds, UK


Richard's Blog - Design, coding and life in Japan

Richard

Stripes in Japanese UTF8

I have finally got working with stripes and I must say I love it (So Far) I know not much beats the beauty of ROR but having come from a PHP background I must say stripes seems to make much more sense (to me anyway)

As always when I start a new project in something new I am plagued by language issues as I work mostly in Japanese. But these issues have been smooth and easy to fix.

First Tomcat - I needed to add all of the language filtering and settings that tomcat suggests.

I found details of this on this tomcat wiki

On my DB connection string for JDBC in mysql I needed to use the following jdbc:mysql://127.0.0.1:3306/dvdstarbox?characterEncoding=UTF-8

then finally I needed to convert my UTF-8 based properties in StripesResources.properties.org to ASCII using the following command in my terminal.

native2ascii -encoding UTF-8 StripesResources.properties.org StripesResources.properties

which I found in this helpful post by Cagan

Hopefully in the next couple of weeks I will have my first App done in stripes finished and am already planning the next one.

Tags:

Recent Blog Posts