Giter Site home page Giter Site logo

UTF-8 output encoding problem about phpxmlrpc HOT 5 CLOSED

gggeek avatar gggeek commented on July 30, 2024
UTF-8 output encoding problem

from phpxmlrpc.

Comments (5)

gggeek avatar gggeek commented on July 30, 2024

I think you misunderstand the purpose of the $GLOBALS['xmlrpc_internalencoding'] variable.
It is a switch which you are allowed to set, after including the phpxmlrpc.inc, to tell the library how you want the (encoding of) data to be fed to your code.
If your app deals with utf8 natively, then you have to set $GLOBALS['xmlrpc_internalencoding'] = 'UTF-8'.
Note that it seems that you are talking about consuming messages. But the same setting is also assumed to apply to all data that your app feeds into the library, i.e. the parameters in your requests.

from phpxmlrpc.

klimesf avatar klimesf commented on July 30, 2024

Thanks for your answer. I actually didn't realise I could change the $GLOBALS, as I have never used them.
However, not depending on $GLOBALS as you suggested in #17 would be better solution in my opinion.

from phpxmlrpc.

gggeek avatar gggeek commented on July 30, 2024

Yup, for the next version I will remove globals as much as possible.
But bear in mind that the nr 1. guideline for development of this library has always been stability and backwards compatibility. That's why we ended up with all those ugly globals, to avoid changing the existing API.
If you can confirm that changing the global value works, I will close this bug

from phpxmlrpc.

HMAZonderland avatar HMAZonderland commented on July 30, 2024

You cannot have backwards compatibility for ever. You'll have to let go somewhere. I do think that support FROM php53 is simply the best option to keep going forward.

from phpxmlrpc.

klimesf avatar klimesf commented on July 30, 2024

I'm sorry I haven't replied for a while, I was quite busy.
Changing global value works for me, you can close this issue.

from phpxmlrpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.