3.0.x rlm_sql mime encoding UTF8 characters

Isaac Boukris iboukris at gmail.com
Sat Nov 1 15:24:53 CET 2014


Hi,

On Mon, Oct 27, 2014 at 4:31 PM, Adam Hammond <adam.hammond at wicoms.com> wrote:
...
>
> My questions are:
>
> Is there a way for me to get rlm_sql to accept UTF8 characters? Or even ignore that check (at my own risk)?

I was faced with the same problem today (version 2.5.5).

I managed to get it working by replacing the function
'sql_escape_func' in 'rlm_sql.c' with the function
'sql_utf8_escape_func' from 'rlm_sql_log.c' file.

This seems to pass basic tests, but I am not sure what are the
implications of this change.

HTH,
Isaac B.


More information about the Freeradius-Users mailing list