[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== inet_queryparam and POST requests (OpenInsight 32-bit) ====
=== At 28 FEB 2013 06:04:14PM paxton scott wrote: ===
{{tag>"OpenInsight 32-bit"}}
Greetings!
OI V9.1.1:OengineServer:Apache/2.217
When sending ü across the internet, it is encoded as %C3%BC so, a word such as Müzeyyen is transmitted as
M%C3%BCzeyyen.
When inet_querryParam() parses the message it becomes Müzeyyen
Where am I going wrong?
What to do?
Have fun!
Paxton
----
=== At 12 MAR 2013 04:08PM paxton scott wrote: ===
Hmmm.
No replies. Maybe because I mis-typed the name of inet_queryParam()? No one has seen this problem? Solution so simple no need to reply?
My plan, not tried yet is to trap %C3%BC in the string and convert it to something that inet_QueryParam() will parse correctly.
Have fun!
Paxton
----
=== At 13 MAR 2013 04:05PM Jared Bratu wrote: ===
Did you [url=http://www.revelation.com/o4wtrs/oecgi3.exe/O4W_DOMINO_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&KEY=1FBA7B4EABC199292BE5F7C17]see this posting about UTF8 and OEngineServer[/url]? Any request that comes int through OECGI3 will pass through the OEngine/OESocketServer which might be doing some translation on the data.
----
=== At 13 MAR 2013 06:54PM paxton scott wrote: ===
Greetings!
What is handed to inet_queryparam in the parameter 'message' is the sent string encoded in the URL % format.
inet_queryparam seems to not handle multi-byte character encodings, as I explained in the original post. I examine the string after OEngineServer and.
In the meantime as a work around, I have written a simple function with only a series of swap statements to swap multi-byte urlencoded characters to the UTF-8 character. message = fixmultibytechars(message) placed at the beginning of my inet_routine. inet_quereyParam then processes the string correctly
Problem solved.
Have fun,
Paxton
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=27C61EBEAF52AF0F0B2ED7BDE|View this thread on the forum...]]