06-24-2009
What is the programming language you are using? There is urldecode() in PHP, decodeURIComponent() in Javascript, and other similar functions in other languages. Do make sure the bytes are correct after you get decoded.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to replace the string %2d from a text file using sed, and I can't seem to find the right key combination. I've tried:
sed 's/%2d/-/' foo
The above doesn't work, presumably because of the %. :mad: Interestingly, I don't get any kind of error message at all. It appears to... (5 Replies)
Discussion started by: mg1
5 Replies
2. UNIX for Advanced & Expert Users
Hi all,
I need to write a unix script in which need to call a url.
Then need to pass parameters to that url.
please help.
Regards,
gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies
3. Shell Programming and Scripting
Hi all,
I need to write a unix script in which need to call a url.
Then need to pass parameters to that url.
please help.
Regards,
gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies
4. Shell Programming and Scripting
I've been trying to figure out how to extract filenames (with extensions) from a variable that contains a series of URL strings that won't necessarily be the same length or contain the same number of paths as part of a bash shell script. For example
#!/bin/bash
... (3 Replies)
Discussion started by: coupestyle
3 Replies
5. Web Development
I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST
The call goes out to
http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena
The ID in the middle is always random due to the cookie.
I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies
6. Shell Programming and Scripting
Could anyone of you please give me some idea to decode base 64 encoded value in ksh? (4 Replies)
Discussion started by: nram_krishna@ya
4 Replies
7. UNIX for Dummies Questions & Answers
Here is what I have so far:
find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}'
Here is an example content of a PHP or HTM(HTML) file:
<iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies
8. UNIX for Dummies Questions & Answers
The challenge:
Decode URL's, i.e. convert %HEX to the corresponding special characters, using only UNIX base utilities, and without having to type out each special character.
I have an anonymous C code snippet where the author assigns each hex digit a number from 0 to 16 and then does some... (2 Replies)
Discussion started by: uiop44
2 Replies
9. Shell Programming and Scripting
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Discussion started by: scott_cog
2 Replies
10. UNIX for Dummies Questions & Answers
Hello everybody, i have a big issue, i have to decode a big text in base64 a lot of times but there are 2 problems: i am a noob with unix system and shell, and i have problems with openssl and i can't decode anything. can anyone decode for me that base64? need a powerful computer, i can give some... (16 Replies)
Discussion started by: supermarco2020
16 Replies
LEARN ABOUT PHP
collator.__construct
COLLATOR.__CONSTRUCT(3) 1 COLLATOR.__CONSTRUCT(3)
Collator::__construct - Create a collator
SYNOPSIS
public Collator::__construct (string $locale)
DESCRIPTION
Creates a new instance of Collator.
PARAMETERS
o $locale
- The locale whose collation rules should be used. Special values for locales can be passed in - if null is passed for the locale,
the default locale's collation rules will be used. If "root" is passed, UCA rules will be used. The Locale attribute is typically
the most important attribute for correct sorting and matching, according to the user expectations in different countries and
regions. The default UCA ordering will only sort a few languages such as Dutch and Portuguese correctly ("correctly" meaning
according to the normal expectations for users of the languages). Otherwise, you need to supply the locale to UCA in order to
properly collate text for a given language. Thus a locale needs to be supplied so as to choose a collator that is correctly tai-
lored for that locale. The choice of a locale will automatically preset the values for all of the attributes to something that is
reasonable for that locale. Thus most of the time the other attributes do not need to be explicitly set. In some cases, the choice
of locale will make a difference in string comparison performance and/or sort key length.
RETURN VALUES
Returns Collator instance.
ERRORS
/EXCEPTIONS
Returns an "empty" object on error. You can use intl_get_error_code(3) and/or intl_get_error_message(3) to know what happened.
EXAMPLES
Example #1
Collator.__construct(3) example
<?php
$coll = new Collator( 'en_CA' );
?>
SEE ALSO
Collator.create(3), collator_create(3).
PHP Documentation Group COLLATOR.__CONSTRUCT(3)