Results 1 to 2 of 2
-
10th Aug 2011, 11:38 AM #1OPMember
c# UrlEncode asciiArt
Hello, i would like to post NFO as TEXT to website, however i have poblem with sites that are ISO-8859-1 (maybe also only vbuletin ones
). I use System.Web.HttpUtility.UrlEncode to conver text to valid string that would send to webpage, but it is encoded differently than firefox does. Firefox encodes ascii art character to ie. %u2588, but my poster to %96 (etc.), definitely i never managed it to encode into %u*, i tried supplementing urlencode string in various encoding and also tried to specify its encodings parameter, but without success. What is the magic?
I'm 100% sure that i managed to convert nfo to UTF8 successfully.
EDIT: omg, now i found UrlEncodeUnicode *FACEPALM*evlo Reviewed by evlo on . c# UrlEncode asciiArt Hello, i would like to post NFO as TEXT to website, however i have poblem with sites that are ISO-8859-1 (maybe also only vbuletin ones :) ). I use System.Web.HttpUtility.UrlEncode to conver text to valid string that would send to webpage, but it is encoded differently than firefox does. Firefox encodes ascii art character to ie. %u2588, but my poster to %96 (etc.), definitely i never managed it to encode into %u*, i tried supplementing urlencode string in various encoding and also tried to Rating: 5
-
10th Aug 2011, 09:47 PM #2OPMember
Hmm, now i see it is still posting crap, did anyone get it working?
EDIT: now if i use it likeCode:string htmlEncodedPostText = HttpUtility.UrlEncode(postText, Encoding.GetEncoding(encoding));
Maybe it has something to do with sent http request itself, but only encoding related thing i found in it is Accept-Encoding and that clearly is accept ...
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
php urlencode problem
By mahjong in forum Web Development AreaReplies: 4Last Post: 2nd Nov 2011, 02:41 PM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...