utf8mb4 encoding support
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
utf8mb4 encoding support
Is l2jserver support utf8mb4 encoding? And how I must configure my db for this? Thx
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: utf8mb4 encoding support
bad, it's bad..com.zaxxer.hikari.pool.PoolInitializationException: Exception during pool initialization: Unsupported character encoding 'utf8mb4'.
-
- Advanced User
- Posts: 1026
- Joined: Thu Aug 14, 2014 6:31 am
Re: utf8mb4 encoding support
Why you need that?.KGB1st wrote:Is l2jserver support utf8mb4 encoding? And how I must configure my db for this? Thx
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: utf8mb4 encoding support
Why?! I think that I can use symbols, smyles and japan lang for nicknames' template..Sacrifice wrote:Why you need that?.KGB1st wrote:Is l2jserver support utf8mb4 encoding? And how I must configure my db for this? Thx
-
- L2j Senior Developer
- Posts: 795
- Joined: Sun Aug 14, 2005 11:27 am
Re: utf8mb4 encoding support
Are you talking about .properties files? Or what files is the hikari pool reading?
.properties files support the ISO-8859-1 charset, when you want to use unicode you need to escape it with \uXXXX.
Is it only on initialization? In your database try utf8 as standard enccoding and utf8mb4 on the tables.
.properties files support the ISO-8859-1 charset, when you want to use unicode you need to escape it with \uXXXX.
Properties (Java Platform SE 8) wrote: public void load(InputStream inStream) throws IOException
Reads a property list (key and element pairs) from the input byte stream. The input stream is in a simple line-oriented format as specified in load(Reader) and is assumed to use the ISO 8859-1 character encoding; that is each byte is one Latin1 character. Characters not in Latin1, and certain special characters, are represented in keys and elements using Unicode escapes as defined in section 3.3 of The Java™ Language Specification.
EDIT: I just se that utf8mb4 is a database thing. You are using the Hikari Database Pool implementation, which does not support utf8mb4.BalusC on stackoverflow wrote: When using a sane IDE such as Eclipse, this is already automatically done when you create a .properties file in a Java based project and use Eclipse's own editor. Eclipse will transparently convert the characters beyond ISO-8859-1 range to \uXXXX format.
Is it only on initialization? In your database try utf8 as standard enccoding and utf8mb4 on the tables.
Away cause of a bulding side in my place.
H5 GeoData from Nos & FBIagent
GoD Ch3 Lindvior GeoData from Nos & FBIagent
Yet another Buffer (Freya & HighFive)
Party Teleporter (Freya & HighFive)
FBIagent
H5 GeoData from Nos & FBIagent
GoD Ch3 Lindvior GeoData from Nos & FBIagent
Yet another Buffer (Freya & HighFive)
Party Teleporter (Freya & HighFive)
FBIagent
- KGB1st
- Posts: 230
- Joined: Sat Jul 26, 2014 5:58 pm
Re: utf8mb4 encoding support
Yes, I told about properties.HorridoJoho wrote:Are you talking about .properties files?
Yes. I did.HorridoJoho wrote:In your database try utf8 as standard enccoding and utf8mb4 on the tables.
P.S. Thanks for good stuff.