mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Adding DATA_CHARSET table option.
This commit is contained in:
@@ -375,7 +375,7 @@ int LIBXMLDOC::Decode(xmlChar *cnt, char *buf, int n)
|
||||
{
|
||||
const char *txt = (const char *)cnt;
|
||||
uint dummy_errors;
|
||||
uint32 len= copy_and_convert(buf, n, &my_charset_latin1, txt,
|
||||
uint32 len= copy_and_convert(buf, n, &my_charset_utf8_general_ci, txt,
|
||||
strlen(txt), &my_charset_utf8_general_ci,
|
||||
&dummy_errors);
|
||||
buf[len]= '\0';
|
||||
@@ -387,7 +387,7 @@ int LIBXMLDOC::Decode(xmlChar *cnt, char *buf, int n)
|
||||
/******************************************************************/
|
||||
xmlChar *LIBXMLDOC::Encode(PGLOBAL g, char *txt)
|
||||
{
|
||||
const CHARSET_INFO *ics= &my_charset_latin1; // TODO: Field->charset()
|
||||
const CHARSET_INFO *ics= &my_charset_utf8_general_ci;
|
||||
const CHARSET_INFO *ocs= &my_charset_utf8_general_ci;
|
||||
size_t i = strlen(txt);
|
||||
size_t o = i * ocs->mbmaxlen / ics->mbmaxlen + 1;
|
||||
|
Reference in New Issue
Block a user