Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode SAMLResponse and SAMLRequest as UTF-8 strings #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jansc
Copy link

@jansc jansc commented Apr 23, 2014

I ran into encoding problems when decoding SAML messages from FEIDE. It turned out that UTF-8 characters were converted into ASCII such that e.g. "ø" became "C8". This patch solves the problem.

The SAML standard states: "The character set of the XML document resulting from decoding the data is determined in the normal fashion, and defaults to UTF-8 if no character set is indicated."

To support encodings other than UTF-8 more work is needed, but I'd suggest using UTF-8 instead of ASCII.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant