QueryCache CJK language not supported.

Description

from NHibernate.Caches.<AnyCacheProvider>.<AnyCacheClient>

ComputeHash function using Encoding.ASCII.GetBytes.

Encoding.ASCII.GetBytes can't encoding CJK language.
QueryCache Use SQL string key. SQL where clauses contains CJK language.

// Korean
Console.WriteLine(Convert.ToBase64String(Encoding.ASCII.GetBytes("길동"))); // Pz8=
Console.WriteLine(Convert.ToBase64String(Encoding.ASCII.GetBytes("최고"))); // Pz8=

// Chinese
Console.WriteLine(Convert.ToBase64String(Encoding.ASCII.GetBytes("新闻"))); // Pz8=
Console.WriteLine(Convert.ToBase64String(Encoding.ASCII.GetBytes("地图"))); // Pz8=

// Japanese
Console.WriteLine(Convert.ToBase64String(Encoding.ASCII.GetBytes("ます"))); // Pz8=
Console.WriteLine(Convert.ToBase64String(Encoding.ASCII.GetBytes("プル"))); // Pz8=

Unicode or UTF8 like a good idea to use.

Environment

None

Assignee

Frédéric Delaporte

Reporter

Chanhee Jeong

Labels

Components

Fix versions

Affects versions

Priority

Minor
Configure