How to set REST Module Attribute encoding to UTF-8?
Alan DeKok
aland at deployingradius.com
Tue Jun 25 16:02:53 UTC 2024
On Jun 25, 2024, at 10:05 AM, 남혁준 <sawd1598 at gmail.com> wrote:
>
> Hello, I am using Rest module and there is no problem with functionality.
>
> However, I am experiencing encoding issues.
>
> Two reproduction scenarios can be presented.
>
> 1. When the data item of the Rest module is directly specified
>
> : In this case, there is no problem. This is because the encoding process
> does not appear to be taking place.
I don't know what you mean "directly specified". Please explain exactly what you're doing.
>
> ★ 2. When the data item of Rest Module is not specified ★
>
> Several Attributes that can be transmitted (set as default) are included in
> the Data item.
>
> And the items that are decided to be transferred are processed as follows.
>
> (19) rest: Encoding attribute "User-Name"
> (19) rest: Encoding attribute "NAS-IP-Address"
That data comes from the NAS / user. It's not invented by FreeRADIUS. So if you want the data in a different format, ask the NAS or user to send different data.
> ...
>
> As a result of the transfer, my Rest Server received data encoded in
> ISO-8859-1 format.
The rest module doesn't encode things in ISO-8859. The module pretty much just takes what the user entered, and sends it to the REST server.
> How can I specify the encoding format of the data sent to the REST module?
I really don't know why this is an issue. The server doesn't magically change things from ISO-8859 to UTF8, or do any other conversions. It takes what it receives, and processes it.
Perhaps you could show what's happening. Maybe even post the debug as *all* of the documentation suggests.
Alan DeKok.
More information about the Freeradius-Users
mailing list