#1  
Old 6th July 2017, 10:36 PM
asturm asturm is offline
 
Join Date: Jul 2017
Posts: 1
Default encoding / decoding html get parameter

Hi,

I am using a nxscript as webapp under v3, it is working properly. But there is a topic with html get paramters and german umlauts (??????).

I have added a parameter, which is used in a sql query later:

http://localhost:10800/dbconnect.nxscript?name=H?xter
sName:=Server.Request('name');

The umlaut is encoded by the browser (H%C3%B6xter), once it is received by the server I am not able to decode it.

urldecode is not working out of the box, maybe I have to include something "before"

output.write(URLDecode(sname));
[Error] (55:17): Unknown identifier 'URLDecode'

Also tried urlencode, nothing happened

type
TnxHTTPRequest = class(TnxLoggableComponent)
public
// URL encode a string
function ServerEncode(aString:string):String;
// URL decode a string
function UrlEncode(const aString: String): String;

Do you have an idea?


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with Arabic encoding Mustafa Zainy nexusdb.public.support 7 21st November 2016 06:52 PM
Web Application - Support Content-Encoding: gzip jprenou nexusdb.public.discussions 3 9th November 2010 04:11 AM
Database Encoding lombo nexusdb.public.support.odbc 2 17th July 2009 02:30 AM
What's the appropriate SQL encoding for extended characters for Widestring fields? Jerry Hayes nexusdb.public.support.sql 5 31st March 2007 10:06 AM
Encoding syntax for extended characters Jerry Hayes nexusdb.public.support 1 29th March 2007 01:46 PM


All times are GMT +11. The time now is 10:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.