[keycloak-dev] Support UTF-8 encoding theme message properites

Stian Thorgersen sthorger at redhat.com
Mon Jul 4 09:33:03 EDT 2016


We have in the past discussed this and decided to stick with ISO-8859-1.
That was probably not the best idea though. If we want to change to utf-8
we'd still need to support iso.. for backwards compatibility.

On 4 July 2016 at 14:37, Bruno Oliveira <bruno at abstractj.org> wrote:

> It makes sense, maybe file a Jira associated with:
> https://issues.jboss.org/browse/KEYCLOAK-3259 ?
>
> On 2016-07-04, Hiroyuki Wada wrote:
> > Hello all,
> >
> > I am trying to translate all base theme messages to my country
> > language, Japanese. And I'd like to contribute them. Before that work,
> > I'd like to propose about the files encoding.
> >
> > Currently, the message files (*.properties) are loaded with ISO-8859-1
> > encoding. Therefore, it is necessary to convert the files by
> > 'native2ascii' command beforehand. However we can directly read the
> > property files with UTF-8 encoding in java 1.6 or later because
> > 'java.util.Properties#load(java.io.Reader)' method was introduced as
> > below.
> >
> >
> http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html#load(java.io.Reader)
> >
> > So, my proposal is supporting the message files with UTF-8 encoding. I
> > believe that it's very developers/customers friendly. In addition, we
> > can easily review the translated messages on the github pull request
> > view and so on. What do you think?
> >
> > If it's ok, I'll create a JIRA issue and create a pull request.
> >
> > Regards,
> >
> > --
> > Hiroyuki Wada,
> > Developer,
> > Nomura Research Institute, Ltd.
> > _______________________________________________
> > keycloak-dev mailing list
> > keycloak-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
> --
>
> abstractj
> PGP: 0x84DC9914
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160704/ac073239/attachment.html 


More information about the keycloak-dev mailing list