How to set REST Module Attribute encoding to UTF-8?
남혁준
sawd1598 at gmail.com
Tue Jun 25 17:54:19 UTC 2024
I attached an image to convey information about the attributes received
from my rest server, but it is not displayed, so I replaced it with a link.
https://ibb.co/X74w6c7
2024년 6월 26일 (수) 오전 1:03, Alan DeKok <aland at deployingradius.com>님이 작성:
> 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.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
More information about the Freeradius-Users
mailing list