AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 40 |
r3wp | 321 |
total: | 361 |
results window for this page: [start: 41 end: 140]
world-name: r3wp
Group: All ... except covered in other channels [web-public] | ||
Graham: 3-Jan-2005 | I want a way to generate mp3 voice mail .. this does the mp3 encoding. | |
Graham: 3-Jan-2005 | uses lame as well for the mp3 encoding. | |
Group: Ann-Reply ... Reply to Announce group [web-public] | ||
Gabriele: 23-Aug-2006 | maybe it's a matter of url encoding to retrieve those files? the upload seemed to work. | |
ICarii: 31-May-2007 | ok - it was the progressive encoding i used on the jpeg it seems - reposting with standard encoding - blame photoshop :) | |
Anton: 24-May-2009 | PeterWood, that string encoding doc and functions look very useful. Nice work. | |
Group: !AltME ... Discussion about AltME [web-public] | ||
[unknown: 10]: 1-Mar-2006 | ...Shared files and stored with encoding... So let the newsgroups now misuse ALTME for anything ;-) Good for business though... | |
Henrik: 18-Oct-2006 | another issue is how text encoding is done. I just had a conversation in Danish with Geomol. While Danish letters look right on a mac it will look different in Windows and vice versa. | |
Group: RAMBO ... The REBOL bug and enhancement database [web-public] | ||
Brett: 19-May-2005 | test-address-import: func [ {Returns true if pass, false if discrepency and none if failed with error.} limit [integer!] "Number of TO address to generate." /quiet "Does not display error." /local to-list eml sep msg obj ] [ to-list: copy {} sep: "" repeat i limit [ eml: to-email join "test-" [i "@test.com"] repend to-list [sep {"'} eml {'" <} eml {>}] if empty? sep [sep: {,^/ }] ] msg: replace copy {Date: Thu, 12 Feb 2004 11:41:49 +0100 From: test <[test-:-test-:-com]> MIME-Version: 1.0 To: TO_LIST Subject: [REBOL] test message - edited copy of real message Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Sender: [rebol-bounce-:-rebol-:-com] Reply-to: [testing-:-testing-:-com] Status: Test message. } {TO_LIST} to-list either error? set/any 'result try [ obj: import-email msg limit = length? obj/to ][if not quiet [print mold disarm result] none][result] ] | |
Gabriele: 21-Nov-2006 | Anton, the problem is actually that rebol does not handle percent encoding correctly in URLs. (i hope we can fix this in r3) | |
Group: Core ... Discuss core issues [web-public] | ||
Tomc: 31-Jan-2005 | if you have more char enties than just hex encoding | |
Group: Script Library ... REBOL.org: Script library and Mailing list archive [web-public] | ||
Oldes: 14-Mar-2008 | I've added encoding: 'cp1252 into header... it's up to rebol.org now to use such an info and convert such a script into utf8 before displaying it in html | |
PeterWood: 11-Mar-2009 | The core of the library system is old enough that it was written without considering character encoding at all. | |
PeterWood: 14-Mar-2009 | At the moment, I'd be worried about standarising the Library on utf-8 as the effect of multibyte characters would have during script and mail processing is not understood. It could well be that the system handles multibyte characters without a hitch but nobody knows yet. I have started to write some scripts to try to help move to a consistent character encoding of the Library data but, due to time constraints, I have been very slow. | |
Maxim: 14-Mar-2009 | sunanda, you can force the character encoding in the html page header... I've used that before and it worked for me. | |
Maxim: 14-Mar-2009 | I had the same kind of issues on another system. nowadays, the default encoding has become UTF-8 for many/most html handlers, so if its not specified, many new browers and tools will incorrectly break up the character data. | |
PeterWood: 14-Mar-2009 | I think the root of the problem is that when the Library system was first written, no account was taken of character encoding. As a result, not only is the data encoded as it was when originally submitted but the method of encoding is not even known. Whatever charset is specified in the http header is not going to be correct for all scripts and messages. Using charset=utf8 seems to cause the least problems. Though for example, it will cause many ISO-8859-1 "high bit" characters to be incorrectly displayed. | |
Anton: 15-Mar-2009 | Sunanda, you're right about that ascii-math.r file. When I clicked the [Download script] link, the browser (konqueror) downloaded and directly opened it with the editor (SciTE). SciTE thought it was 8-bit ascii, and showed the characters incorrectly. All I had to do was change the file encoding from 8-bit to utf-8 and the characters appeared correctly. I guess the editor had no way of determining the encoding, and incorrectly guessed 8-bit ascii. | |
Anton: 15-Mar-2009 | The view-script.r html source for the page correctly advertises the encoding as utf-8, so the browser shows it correctly. | |
Sunanda: 16-Mar-2009 | Thanks Gabriele -- that's a clear explanation, and has helped me work out what is going on. Anton and Gabriele -- I have tried changing the charset we emit on the download to say UTF-8. But that makes little difference. As both of you note, once the file has been saved then (without a MAC-type resource fork) there is no obvious indication of the encoding. And several editors I have tried get it wrong -- thus "revealing" the extra ASCII chars. Not sure what the solution is other than to de-UTF-8 files on download. | |
Anton: 16-Mar-2009 | Which editors? I think most editors these days allow manually changing the encoding, so developers who notice strange characters can just change it themselves. Maybe it would be helpful to add a rebol.org library script header advertising the encoding (when it is known, and when not). I don't recommend 'de-UTF-8'ing files on download - that's just going to confuse things more, especially when the file is view-script.r'd as utf-8 just beforehand. | |
Anton: 16-Mar-2009 | It seems the responsibility lies with the clients to interpret encodings properly. As we move to a unicode world, software assuming 8-bit encodings are some ASCII encoding should drop off. But until the transition is complete, there's not much we can do about client software guessing wrong like that, except stating the encoding in the script header, in the web page that provides the download link, and by helping confused newbies. | |
Anton: 16-Mar-2009 | Are rebol.org uploaders asked to declare the encoding used? | |
Anton: 17-Mar-2009 | Ok, so there are some editors which don't support unicode, don't guess encoding correctly, or can change encoding only with difficulty. How about this suggestion; if a rebol.org script is known to be UTF-8, then an additional link should appear: [Download as ASCII] download-a-script?script-name=ascii-math.r&encoded-as=8-bit-ascii which transcodes a UTF-8 file to ASCII. Just have to get a conversion function in place for this to work. | |
Anton: 18-Mar-2009 | Ok, so things seem to be proceeding well. The rebol.org Library's support for utf-8 was actually stronger than thought, and what're being added are functions to help deal with legacy client apps which misidentify the file encoding. | |
Sunanda: 18-Mar-2009 | Using Peter's code (thanks again!), I've made two changes to the download-a-script link: 1. if we find UTF-8 chars in a script, we download it with the HTTP content type charset=utf-8 But that probably makes no practical difference. A downloaded script will be saved by the browser, and then opened by a text editor. The text editor is unlikey to be passed the charset setting. So: 2. Scripts with UTF-8 encoding are downloaded with a few lines of comment at their top. The comment explains the possible problem. Thanks to all for the comments and help with getting things this far. | |
Graham: 22-Jul-2010 | I'd suggest recognizing 3D as the beginning of a name could be an encoding error | |
Group: PDF-Maker ... discuss Gabriele's pdf-maker [web-public] | ||
Janeks: 24-Oct-2005 | Thanks for anwers! I don't know any thing about PDF, but I did couple functions for encoding conversation. Could it be a "quick hack" or it requires good background of PDF format ? | |
Gabriele: 25-Oct-2005 | it might be a quick hack, but i need to check the docs for PDF... but IIRC for an encoding different from the default you need to provide a char table or something like that... | |
Gabriele: 4-Aug-2006 | my plan is to eventually have that in version 2 (a first release of version 2 is due in a couple weeks). however, note that while the pdf format directly supports latin1 encoding, it does not support unicode encodings directly. so it's a pain to make it work. openoffice, for example, creates divides the characters you use in the document in groups of 256, then creates a new custom font for each group. (i also assume that the 14 standard fonts do not support unicode, so you need custom font support to be able to use unicode.) | |
Janeks: 2-Mar-2007 | Can I use scripts of Oldes to get right encoding output of pdf from pdfMaker? It seems that Rebol uses for my Win platform Win1257. In which encoding should I convert text for input to pdfMaker to get right accentuated characters in pdf generated by pdf maker? | |
Gabriele: 3-Mar-2007 | the pdf format only supports adobe encoding, windows encoding and mac encoding. the pdf maker only uses windows encoding (which is basically latin1). | |
Oldes: 3-Mar-2007 | and which windows encoding? Maybe can janeks just set some flag or something which specifies his encoding in the file. | |
Gabriele: 4-Mar-2007 | oldes: unfortunately, no. he has to specify the encoding in the font description. the only "built-in" encodings are Adobe, WinANSI (latin1) and Mac. I think adobe is a variant of latin1. | |
Gabriele: 4-Mar-2007 | to support unicode you have to create a multibyte encoding for the fonts, and the spec does not give any detail on how this works. | |
Gabriele: 4-Mar-2007 | so i will either need to figure out how to create a font encoding description that works for utf-16 (but i guess it would require a huge table, and so would make the documents big), or i'll need to use the same technique as OO | |
Gabriele: 12-May-2009 | non-ascii: the only supported encoding so far is latin1 (basically... more precisely i think i have it set to the Windows variation, which iirc is windows-1252) - that is, the same that View uses on western Windows installations. | |
Gabriele: 12-May-2009 | unfortunately the PDF format does not have direct support for encodings except for the default windows encoding, the default mac encoding, and an adobe encoding; they are all variations of latin1. | |
Janko: 12-May-2009 | yes, we just started to suspect that what you said about encoding | |
Gabriele: 12-May-2009 | if i ever get to the point of adding support for custom fonts, then i might be able to also give the fonts any encoding. | |
Janko: 12-May-2009 | ( but encoding is 100x bigger problem for me ) | |
Janko: 12-May-2009 | do you think that /Encoding /Differences [ 200 /Ccaron 232 /ccaron ] doesn't work because it's PDF-1.3 and in that example it's PDF 1.6, maybe this is more recent feature? | |
Janko: 12-May-2009 | I tried that and nothing happened then I changed the encoding object headers to << /Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences [ and got error while opening (18) | |
Janko: 12-May-2009 | I found an example of PDF from Haru library which uses all ISO8859 encoding 1 - 20 ... it is version PDF-1.3 , it does use the /Differences for each encoding, it also defines widths for them, I intend to look at it and somehow transfer it to pdf-maker .. but I am not sure how successfull I will be as pdf-maker seems quite complex beast | |
Oldes: 12-May-2009 | It's not possible to use utf8 encoding with pdf-maker ? | |
Oldes: 12-May-2009 | Yes... I would need latin2 encoding as well. So I hope you will solve it before I would like to use it:) | |
Gabriele: 13-May-2009 | let me know if you find out that a new version of the format supports unicode or that there is a simple way to implement it. to me it looks like the only way would be to create your own 1 or 2 byte encoding with the glyphs you use, or to do like OpenOffice does - it creates a separate font for each set of 256 different characters and then selects the correct font for each character. | |
Group: MySQL ... [web-public] | ||
Dockimbel: 9-Jan-2006 | Is 'sha1 encoding available in free REBOL cores ? | |
Dockimbel: 2-Sep-2007 | This new 'read implementation avoids the SQL encoding issues encountered in previous versions. The side effect it that it will break compatibility with previous sources using 'read. | |
TomBon: 25-May-2009 | hi doc, is there any trick or encoding to prevent inserting errors due to strings containing special characters like ' or / etc? | |
Dockimbel: 25-May-2009 | There's also an alternative approach, the SQL-ESCAPE encoding function of MySQL driver is exported in the global context, so you can use it when forming SQL queries directly : send-sql db join "UPDATE table SET field=" sql-escape string The prepared statement approach is recommended, because the driver will care about that for you automatically (so less risks that you forget to encode one value, opening a hole for SQL injection attacks). | |
Dockimbel: 4-Mar-2010 | At least, the whole networking support needs probably to be fully rewritten for R3. Beyond that I'm not sure what you work or not out of the box with R3. String encoding and Unicode might require some additional code. MD5 support is also required btw, if you want to use passwords with 4.1+ MySQL servers (for 3.x support, you would need to rewrite the whole current driver encryption code). | |
Andreas: 20-Oct-2010 | http://www.json.org/json.rwill help you with the encoding. | |
Andreas: 20-Oct-2010 | Also note that the above approach with CONCAT/GROUP_CONCAT does not help you with JSON-specific encoding. So changes to you'll in fact create wrong JSON are rather high. | |
Group: Linux ... [web-public] group for linux REBOL users | ||
btiffin: 27-Aug-2008 | What console is he running? Under Konsole the list of encodings is overwhelming. (From the Settings menu). If it's xterm, then ... I dunno, but regardless, if it is xterm or other, drop a note and we'll track down an appropriate place to tweak the default encoding used by his REBOL console (whatever terminal he uses) session. It might be easier (some gui menu), but it could well look something like XTerm*locale: true XTerm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1 in an X config file From the root text console for REBOL/Core, we'd have to look into that as well; been there, kinda done that, too many details, forget all details, but keep foggy clue where to start looking ... :) | |
Gabriele: 28-Aug-2008 | (type the chars you want to see the encoding for, then enter, then CTRL-D) | |
Gabriele: 28-Aug-2008 | (type the char you want to see the encoding for, REBOL will give you the binary encoding) | |
Group: CGI ... web server issues [web-public] | ||
François: 25-Jul-2005 | With Apache 2.x (normal CGI), we have: make object! [ server-software: "Apache/2.0.54 (Fedora)" server-name: "localhost" gateway-interface: "CGI/1.1" server-protocol: "HTTP/1.1" server-port: "80" request-method: "GET" path-info: "/sample01.rhtml" path-translated: "/var/www/html/sample01.rhtml" script-name: "/cgi-bin/magic.cgi" query-string: "" remote-host: none remote-addr: "127.0.0.1" auth-type: none remote-user: none remote-ident: none Content-Type: none content-length: none other-headers: [ "HTTP_HOST" "localhost" "HTTP_USER_AGENT" {Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6} "HTTP_ACCEPT" {text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5} "HTTP_ACCEPT_LANGUAGE" "en-us,en;q=0.5" "HTTP_ACCEPT_ENCODING" "gzip,deflate" "HTTP_ACCEPT_CHARSET" "ISO-8859-1,utf-8;q=0.7,*;q=0.7" "HTTP_KEEP_ALIVE" "300" "HTTP_CONNECTION" "keep-alive" "HTTP_COOKIE" "PHPSESSID=7f84fd7766f23e1462fed550ecbbfda4" ] ] | |
Group: !Readmail ... a Rebol mail client [web-public] | ||
Fabrice: 20-May-2005 | Received: from web26108.mail.ukl.yahoo.com ([217.12.10.232]) by mail.prosygma-asp.com (Merak 7.5.2) with SMTP id 1TI26716 for <[me-:-you-:-com]>; Tue, 26 Apr 2005 04:58:31 +0200 Received: (qmail 67900 invoked by uid 60001); 26 Apr 2005 02:58:30 -0000 Message-ID: <[20050426025830-:-67898-:-qmail-:-web26108-:-mail-:-ukl-:-yahoo-:-com]> Received: from [81.248.68.164] by web26108.mail.ukl.yahoo.com via HTTP; Tue, 26 Apr 2005 04:58:29 CEST Date: Tue, 26 Apr 2005 04:58:29 +0200 (CEST) From: Rodrigue <[you-:-me-:-com]> Subject: Re: Erreur lors de l'enregistrement d'une news To: Admin Rebol <[me-:-you-:-com]> In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-370637848-1114484309=:67141" Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 0517-0, 25/04/2005), Inbound message X-Antivirus-Status: Clean --0-370637848-1114484309=:67141 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Salut Fabrice, Peux tu me redire sous quel format je dois envoyer les photos Rodrigue Admin Rebol <[me-:-you-:-com]> wrote: Bonjour Rodrigue, >Salut Fabrice, >contrairement à ce que je t'expliquais hier soir, les news ne s'enregistrent pas. >voilà le message d'erreur : Peux-tu m'envoyer ce que tu veux mettre en ligne par @ ? Je vérifierais directement avec tes données car il n'y a pas de problème de mon côté pour ajouter les news. Merci. -- Fabrice --------------------------------- Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail --0-370637848-1114484309=:67141 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <DIV>Salut Fabrice,</DIV> <DIV> </DIV> <DIV>Peux tu me redire sous quel format je dois envoyer les photos<BR></DIV> <DIV>Rodrigue</DIV> <DIV><BR><B><I>Admin Rebol <[me-:-you-:-com]></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Bonjour Rodrigue,<BR><BR>>Salut Fabrice,<BR>>contrairement à ce que je t'expliquais hier soir, les news ne s'enregistrent pas.<BR>>voilà le message d'erreur : <BR><BR>Peux-tu m'envoyer ce que tu veux mettre en ligne par @ ?<BR>Je vérifierais directement avec tes données car il n'y a pas de problème de mon côté pour ajouter les news.<BR><BR>Merci.<BR><BR>-- <BR>Fabrice<BR></BLOCKQUOTE><p> <hr size=1> Découvrez le nouveau Yahoo! Mail : <font color="red">250 Mo d'espace</font> de stockage pour vos mails !<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://us.rd.yahoo.com/evt=25917/*http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_250/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez votre Yahoo! Mail</a> --0-370637848-1114484309=:67141-- | |
Group: AGG ... to discus new Rebol/View with AGG [web-public] | ||
shadwolf: 22-Jun-2005 | 20 years ago Wav and Midi format where the only ones now in day you have more than 10 sound encoding format .... An alternative could be to traslate systematically the what ever encoded sound file to a WAV one and then play it but franckly do you thing people that are using a jukebox software (like winamp for example) will accept 1) to wait 5 minutes for theire files to be translated then have a poor audio quality ??? | |
Cyphre: 30-Dec-2005 | Ok, so here it is: -fixed image keying bug (swapped color components in keying tuple!) -line width is now now changing according to scale -fixed rendering of transformed images(now uses aplha premultiplied data) -fixed LINE-PATTERN bug (multiple line patterns in DRAW block should work properly now) -fixed MATRIX bug(wrong matrix calcualtion was corrected in this case) -fixed SKEW command inconsistency (now it takes degrees as arguments instead of radians) -fixed FILL-PEN bug when filling images (now it doesn't render images upside down) -fixed ANTI-ALIAS cmd(now it is possible to switch this mode within one DRAW block) -removed POP command (was obsolete, PUSH with block! arg is used instead) -fixed fill/outline pixel aligning problem -fixed visual bug when rendering circle with line-width > 1 -fixed text character encoding problem -improved gradients: added REFLECT and REPEAT modes, example: view layout [ origin 0 box 400x460 effect [ draw [ pen none fill-pen linear 10x10 0 190 0 1 1 black red green blue black box 10x10 390x90 fill-pen linear 10x160 0 190 0 1 1 black red green blue black repeat box 10x100 390x180 fill-pen linear 10x310 0 190 0 1 1 black red green blue black reflect box 10x190 390x270 fill-pen radial 80x350 0 20 0 1 1 black red green blue black circle 80x350 70 fill-pen radial 190x350 0 20 0 1 1 black red green blue black repeat circle 190x350 70 fill-pen radial 320x350 0 20 0 1 1 black red green blue black reflect circle 320x350 70 ] ] ] | |
Group: Web ... Everything web development related [web-public] | ||
Pekr: 3-Aug-2006 | a question - I have Windows app in cp-1250 encoding. Then I generate some html, which is server from Linux. When I look in Mozilla at the page source (http://www.jablunkovsko.cz), the browser displays some czech chars encoded, e.g. á. But when I save the page locally on my Windows machine, I get correct czech chars ... | |
Alek_K: 3-Aug-2006 | I saved page locally, and have still ´ I suppose it's fault of WYSIWYG software made with english people in mind only (or not properly configured). No need to encoding special chars this way if You have characters in declared encoding (that's what <meta http-equiv="Content-Type" for). | |
Dockimbel: 25-May-2009 | Then, you can try with HTTP chunked encoding (http://en.wikipedia.org/wiki/Chunked_transfer_encoding), it's the classic way to stream HTML to the browser. Having the page displayed while downloading chunks is browser specific. It's implemented in Cheyenne's HTTPd, but reading that wikipedia page makes me wonder if it still works with the new automatic HTTP compression introduced in 0.9.19 (haven't done regression tests for that case). | |
Group: Announce ... Announcements only - use Ann-reply to chat [web-public] | ||
kib2: 5-Mar-2009 | Does that mean that we can use unicode encoding with the help of r2-forward ? | |
PeterWood: 23-May-2009 | I have published the string encoding utlilties that I wrote for rebol.org in the script library. They no doubt pale in comparison to those Gabriele has written but may help until his are finally released for publication. The script package includes a minimal set of unit tests and some rudimentary documentation. http://www.rebol.org/documentation.r?script=str-enc-utils.r | |
Group: !Uniserve ... Creating Uniserve processes [web-public] | ||
Louis: 13-May-2006 | If this list doesn't fulfill all your needs, here's the additionnal features planned for the 1.0 release : * RSP: REBOL Server Pages support. * General CGI support (run any CGI script). * Chunk-encoding transferts support (streamed data transferts). * Standard compression methods support: gzip, deflate, bzip2. * Byte-ranges request support (ability to request files in parts and resume broken downloads). * mod-rewrite module for powerful request URL transformations (without the regexp complexity!). * mod-map-url module for direct URL to REBOL functions or objects mapping. * SSL support. * Advanced GUI client for local and remote administration. | |
Group: XML ... xml related conversations [web-public] | ||
Sunanda: 28-Oct-2005 | Chris -- I don't get that problem, But you did make me look closer, and my earlier statement was wrong. I'm using http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=xml-object.r Which is similar to xml-parse, but not identical. Example of usage: probe: first reduce xml-to-object parse-xml {<?xml version="1.0" encoding="ISO-8859-1"?> <xxx>11</xxx> } | |
CarstenK: 7-Nov-2005 | John, I've downloaded it from your website - thank you! One more question from an unexperienced REBOL-user: What is the most commen way to enhance a block I've got with xml2rebxml, source is <?xml version="1.0" encoding="iso-8859-1"?> <chapter id="ch_testxml" name="Test XML"> <title>A chapter with some xml tests</title> <sect1 id="sct_about" name="About my Tests"> <title>What kind of tests I will do</title> <body> <para>Some simple paragraph.</para> </body> </sect1> </chapter> After read in the file with my-doc: xml2rebxml read %test.xml I'd like to insert a second sect1-element in the block my-doc, whats the best way - just to avoid some stupid mistakes. | |
CarstenK: 9-Nov-2005 | RebXML: I did some testing with rebxml, the documents I used can be found here: http://www.simplix.de/rebol/resources/xml/xmltests.zip There is also a simple script that reads the XML docs in and writes them back. Some problems I found: - empty attributes, I have fixed this in the zip - entities in content: all should be escaped, because they can be found there, otherwise a " gets &quot; - comments after last element missed - comments before first element - missing line feed - missing PIs in output Another question: encoding - it seems that all output files will be written in iso-8859-1 ? | |
Geomol: 9-Nov-2005 | About encoding in RebXML, rebxml2xml let you produce utf-8 by specifying the /utf-8 refinement: rebxml2xml/utf-8 <some rebxml data> | |
Graham: 8-Nov-2008 | the only difference I can see between POST and SOAP is that the encoding method ... SOAP uses text/xml; | |
Chris: 9-Nov-2008 | The web and soap/http are in a sense REST applications (REST is just WS over HTTP) though both use a limited subset of REST arguments and have to work around as such. The web is limited (by the HTML spec) to the verbs 'get and 'post, and post content types of 'application/x-www-form-urlencoded (default) or 'multipart/form-data (used to upload files). For the most part, the web is RESTful as we usually only want to 'get resources. However, other operations typically violate REST principles, as all other resource actions (create, update, delete) have to squeeze through the get/post/url-encode/multipart pipe. The Rebol HTTP protocol as standard is designed to mimic this and requires patching to move beyond get/post/url-endode (even for multipart) SOAP as I understand it, when using HTTP only uses 'post - the post content contains the actual request. Where it varies from the web (and Rebol HTTP) is the need for the 'text/xml content type. REST itself is limited only by HTTP. It uses theoretically limitless HTTP (v1.1) verbs (though most common patterns use 'get, 'put, 'post and 'delete). It uses any encoding. It uses HTTP headers as parameters (eg. the 'Accept header specifies the desired return type). Therefore, any HTTP protocol designed for REST will accomodate SOAP requests. | |
Group: DevCon2005 ... DevCon 2005 [web-public] | ||
JaimeVargas: 7-Jul-2005 | As I said the problems we have last time were not related to our broadcasting or encoding format. It was due to our physical instruments (camaras, mics, and camera man). | |
Gabriele: 6-Aug-2005 | keep in mind that i will still record everything on tape and encode that later (maybe mpeg4, 2-pass encoding) | |
Gabriele: 24-Sep-2005 | we'll be on altme too, and i'll have skype on, and hopefully the video stream works... other than that, yes, editing and encoding takes a lot of time. | |
Gabriele: 24-Sep-2005 | i'll be back home on tuesday 4th, and will start editing and encoding the keynote immediately. hopefully, it will be ready by 5th... | |
Group: PgSQL ... PostgreSQL and REBOL [web-public] | ||
Ingo: 19-Jul-2005 | A question about nenads original pgsql (0.90), I have a database using UNICODE as the encoding, and try to connect via pgsql. Characters get encoded as, e.g. \010 ( #"^/" ) etc. I tried to change the client encoding within postgresql to winxxxx, or latinxxx, but it made no difference. any ideas? | |
Oldes: 24-Jul-2005 | Im' using the non async version with these changes with no problems and use UNICODE encoding as well | |
Ingo: 25-Jul-2005 | Something else that works: insert db "set client_encoding to 'win'" now pgsql understands what rebol sends it, doesn't work for "€", though. | |
Janeks: 2-Mar-2007 | Thanks Oldes - it worked! The minor thing now is that I can not use UTF8 encoding for databases then I am getting in case of language specific characters: >> insert db {INSERT INTO my_first_table VALUES (1, 'kaíçni', 12.34);} ** User Error: ERROR: invalid byte sequence for encoding "UTF8": 0xede76e ** Near: insert db {INSERT INTO my_first_table VALUES (1, 'kaíçni', 12.34);} >> But well - it seems that I can still use Win1257 encoding or try to set client encoding - that I did not yet tried/learn. | |
Oldes: 2-Mar-2007 | or let the sql server know, what encoding you are using (that it's not UTF8) | |
Oldes: 2-Mar-2007 | if you set the encoding on the server side, you don't need to convert your strings in Rebol but let the server to do that job | |
Janeks: 2-Mar-2007 | It seems for me too the best aproach too. One another case where to use encoding funcions could be PDF maker - I had trouble to get pdf output into special characters of my language. | |
Group: Rebol School ... Rebol School [web-public] | ||
PatrickP61: 27-Jun-2007 | Hi All, Have any Rebolers dealt with UniCode files? Here is my situation. I work on an IBM AS400 that can "port" files over to the PC. Notebook opens it up just fine, but Rebol doesn't see it the same way. If I Cut & Paste the contents of the file into an empty notebook and save it, Rebol can see it just fine. Upon further study, I noticed at the bottom of the SAVE AS window that Encoding was set to UNICODE for the AS400 file, while the cut & paste one was set to ANSI. Does Rebol want ANSI text files only, or can it read UNICODE files too? | |
PatrickP61: 27-Jun-2007 | When you try to save a document under Notebook, the encoding choices are UTF-8, UNICODE, ANSI among others. UNICODE may be the same as UTF-16 because it does look like every single character is saved as two bytes. The code (rejoin extract read InFile 2) does eliminate the double characters but I noticed that the entire file is still double spaced -- as if the newline is coded twice and not removed from the rejoin. But that extra newline may be an annoyance than anything else. | |
PatrickP61: 28-Jun-2007 | Hi PhilB -- The formatted text report is generated on the AS400 into the work spool area. I then can use the INavigator software on the PC to connect to it and drag and drop it on the PC, where I can look at it via Word or Notebook. I'm not sure where the encoding to UniCode is happening -- I suspect the INavigator software, but then, it may not be an issue since Rebol can convert it to readable text, even with the extra newline between each line, I'm sure that annoyance can be overcome too. | |
PatrickP61: 28-Jun-2007 | At first, I thought it just be some stray bytes comming from the AS400, but I was able to re-create a file using Notebook and get same results. Any of you should be able to test this out by: 1. Open Notebook 2. Type in some text 3. Save the file with Encoding to UNICODE | |
Group: Rebol/Flash dialect ... content related to Rebol/Flash dialect [web-public] | ||
Terry: 16-Nov-2007 | To give you an example.. this.. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"> <mx:Panel title="My Application" width="200" height="300" x="0" y="0"> <mx:Label text="Welcome to Flex!" mouseDownEffect="WipeRight" height="45"/> </mx:Panel> <mx:PopUpButton x="483" y="20" label="PopUpButton"/> <mx:Accordion x="441" y="50" width="200" height="200"> <mx:Canvas label="Accordion Pane 1" width="100%" height="100%"> </mx:Canvas> <mx:Canvas label="asdf" width="100%" height="100%"> </mx:Canvas> <mx:Canvas label="asdf" width="100%" height="100%"> </mx:Canvas> <mx:Canvas label="adsf" width="100%" height="100%"> </mx:Canvas> </mx:Accordion> <mx:CheckBox x="441" y="258" label="Checkbox"/> <mx:DateChooser x="238.5" y="31"/> </mx:Application> | |
Group: rebcode ... Rebcode discussion [web-public] | ||
Oldes: 22-Oct-2005 | What would be the best way to implement switch like function in rebcode (with many cases - encoding/decoding table) | |
Group: Windows/COM Support ... [web-public] | ||
Anton: 3-Jun-2008 | Each type of COM object may support different string encodings, I think. We'll have to look up what type of encoding Skype supports. | |
Group: Postscript ... Emitting Postscript from REBOL [web-public] | ||
Geomol: 6-Nov-2006 | REBOL postscript dialect version 0.3.0: http://home.tiscali.dk/john.niclasen/postscript/postscript.r New thing is, that you don't have to make all those blocks as in the prior version. Also alignment of text is possible and output is ISOLatin1 encoding, both thanks to Henrik. I should write some documentation soon! | |
Geomol: 24-Feb-2008 | So this is very simple encoding. ASCII85 encoding is a bit more difficult, but will take up less space. | |
Group: !Cheyenne ... Discussions about the Cheyenne Web Server [web-public] | ||
btiffin: 2-Jun-2007 | It's not a short paste... [HTTPd] ================== NEW REQUEST ================== [HTTPd] Request Line=>GET /testapp/ HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 302 Moved Temporarily Server: Cheyenne/0.9.11 Connection: close Location: /testapp/login.rsp [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Connection closed [HTTPd] ================== NEW REQUEST ================== / [HTTPd] Request Line=>GET /testapp/login.rsp HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 200 OK Server: Cheyenne/0.9.11 Content-Length: 482 Content-Type: text/html Connection: Keep-Alive Set-Cookie: RSPSID=EISPOMAZTPDFKVIWJAFONZDE; expires=Sat, 02 Jun 2007 11:54:30 GMT; path=/testapp; HttpOnly Pragma: no-cache Cache-Control: no-cache, must-revalidate Expires: Thu, 01 Dec 1994 16:00:00 GMT [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Phase task-done done ( mod-rsp ) [HTTPd] ================== NEW REQUEST ================== \ [HTTPd] Request Line=>POST /testapp/login.rsp HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/testapp/login.rsp Content-Type: application/x-www-form-urlencoded Content-Length: 23 [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Posted data=>login=test&pass=letmein [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 301 Moved Permanently Server: Cheyenne/0.9.11 Connection: close Location: /testapp/ Set-Cookie: RSPSID=YDADUIONKJPHLFBWEDZDFCXN; expires=Sat, 02 Jun 2007 11:54:37 GMT; path=/testapp; HttpOnly [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Phase task-done done ( mod-rsp ) [HTTPd] Connection closed [HTTPd] ================== NEW REQUEST ================== [HTTPd] Request Line=>GET /testapp/ HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/testapp/login.rsp [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 302 Moved Temporarily Server: Cheyenne/0.9.11 Connection: close Location: /testapp/login.rsp [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Connection closed [HTTPd] ================== NEW REQUEST ================== [HTTPd] Request Line=>GET /testapp/login.rsp HTTP/1.1 [HTTPd] Request Headers=> Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/testapp/login.rsp [HTTPd] Phase url-to-filename done ( mod-alias ) [HTTPd] Phase url-to-filename done ( mod-rsp ) [HTTPd] Phase url-to-filename done ( mod-fastcgi ) [HTTPd] Phase url-to-filename done ( mod-static ) [HTTPd] Phase access-check done ( mod-action ) [HTTPd] Phase set-mime-type done ( mod-action ) [HTTPd] Phase make-response done ( mod-rsp ) [HTTPd] Response=> HTTP/1.1 200 OK Server: Cheyenne/0.9.11 Content-Length: 482 Content-Type: text/html Connection: Keep-Alive Set-Cookie: RSPSID=RTJSUKAVYBNOLCJCJBSTNUHP; expires=Sat, 02 Jun 2007 11:54:37 GMT; path=/testapp; HttpOnly Pragma: no-cache Cache-Control: no-cache, must-revalidate Expires: Thu, 01 Dec 1994 16:00:00 GMT [HTTPd] Phase logging done ( mod-static ) [HTTPd] Phase clean-up done ( mod-rsp ) [HTTPd] Phase task-done done ( mod-rsp ) | |
Graham: 2-Jun-2007 | My working login.rsp script ... <% in-user: select request/content 'login in-pass: select request/content 'pass encoding-salt: to-binary "My encryption string" print [ <p/> "Login is: " in-user " and pass is " in-pass <p/> ] encode-pass: func [ pass [string!] salt [binary!] ] [ checksum/secure append to binary! pass salt ] if all [ in-user in-pass ][ print <pre> qry: rejoin [ {select staffname, sid, fullname from staff where staffname = '} in-user {' and pwd = '} form encode-pass in-pass encoding-salt {'} ] probe qry print </p> sql: do-sql 'remr qry print [ "Query result: " sql ] print </pre> if found? sql/1 [ response/redirect "/testapp/" ] ] %> | |
btiffin: 2-Jun-2007 | Output from a Ice Weasel http://dev:8080 - dev.rsp redirects to show.rsp... Back Timestamp: 2-Jun-2007/19:37:48-4:00 Request parameters : * HTTP Method: GET * HTTP Port: 8080 * Client IP address: 192.168.1.102 Request headers : * Host : "dev" * User-Agent : {Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1)} * Accept : {text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5} * Accept-Language : "en-us,en;q=0.5" * Accept-Encoding : "gzip,deflate" * Accept-Charset : "ISO-8859-1,utf-8;q=0.7,*;q=0.7" * Keep-Alive : "300" * Connection : "keep-alive" Request variables : * No variable passed Session : * No session | |
Dockimbel: 4-Jun-2007 | Another approach could be to install in your module a callback for 'filter-output phase (not used in any builtin modules, yet) and test the return code. This way, you wouldn't need to patch mod-static and if you give it order: 'first, it should be able to work even when I'll add callbacks to that phase. The purpose of this phase is to allow last minute changes on the response content, like encoding (think about JSON, for example), compressing (gzip, deflate) or encrypting it. These kinds of handlers would be installed as 'last in the phase callbacks order. | |
Gabriele: 26-Jun-2007 | you need to encode # with percent encoding, and you need to make sure rebol is nod decoding that for you silently (the url! datatype does this unfortunately). | |
Dockimbel: 11-Jul-2007 | No tested, but I don't why this would be a problem for Cheyenne, as long as it's a valid HTTP request. There's only two upload encodings that Cheyenne currently doesn't support: multipart/mixed and chunked. Chunked encoding is only supported in Cheyenne's responses. | |
Group: DevCon2007 ... DevCon 2007 [web-public] | ||
Gabriele: 4-May-2007 | i need to find some time and look at what i need to do (eg encoding) to put them there. | |
Izkata: 4-May-2007 | YouTube I know you just upload. No need to worry about encoding there |
1 / 361 | [1] | 2 | 3 | 4 |