Special characters in the variable string sent from php.
Hello. Assuming that I have send a php string variable in flash:
AS3:
var MyImportedString:String;
var variables_page_text:URLVariables = new URLVariables();
var varSend_page_text:URLRequest = new URLRequest("MyPHP.php");
varSend_page_text method in the group URLRequestMethod.POST;
varSend_page_text data in the Group variables_page_text;
var varLoader_page_text:URLLoader = new URLLoader;
varLoader_page_text the dataFormat group pouvez;
varLoader_page_text. addEventListener (Event.COMPLETE, var_comp_page_text);
varLoader_page_text. load (varSend_page_text);
( function var_comp_page_text() event: Event(): void {}
MyImportedString = event.target.data. $myvariable;
}
PHP:
<? PHP
header (' Content-Type: text/html; charset = utf - 8');
$mystring1 = "some text &";
Print "$myvariable =" . $mystring1;
? >
I noticed that the special '&' residing inside the string character, throws an error: #2101: the string passed to URLVariables.Decode must be a query string URL-encoded containing name/value pairs.
My first thought was, it has something to do with the html entities, but other entities (such as <> or """) do not throw any error. In addition, the use of php functions like htmlentities(). or html_entity_decode(); makes no difference in this case:
Print "$myvariable =" . htmlentities ($mystring1);
or
Print "$myvariable =" . html_entity_decode ($mystring1);
I also noticed that the characters such as '%', ' ^', '+' appear at all;
What it means? Any ideas?
Reagards.
This function generally works pretty well:
function flash_encode($string)
{
$string = rawurlencode(utf8_encode($string));
$string = str_replace("%C2%96", "-", $string);
$string = str_replace("%C2%91", "%27", $string);
$string = str_replace("%C2%92", "%27", $string);
$string = str_replace("%C2%82", "%27", $string);
$string = str_replace("%C2%93", "%22", $string);
$string = str_replace("%C2%94", "%22", $string);
$string = str_replace("%C2%84", "%22", $string);
$string = str_replace("%C2%8B", "%C2%AB", $string);
$string = str_replace("%C2%9B", "%C2%BB", $string);
return $string;
}
?>
Tags: Adobe Animate
Similar Questions
-
where are the special characters in the new Pages?
where are the special characters in the new Pages?
Menubar pages: Edit: Emoji & symbols, or control-command + space combination. Same situation in other Apple applications. In addition, available as a menu item from the menu entry in the menu bar to the right, Finder.
-
Chips and other special characters in the App World descriptions
How is one makes chips and other special characters in the description of the app in the supplier portal? I see various descriptions app with chips so I know it's possible. I tried Googling the answer, but to no avail. Can someone point me to the documentation for it?
Thank you
Lester
I think it's just the Unicode text, so if you include these characters when you submit the form, they will display.
Your question is perhaps more on how to insert these characters into the HTML form. To do this, because I need it rarely, I didn't copy and paste of a website where I can find the required text. For example, Google for 'unicode ball' and you can find one of them on one of the first findings of the research, such as the Wikipedia article.
Some people probably have their systems set up to type Unicode directly from their keyboard, but I never got to determine the modern way to do this (and the last time I checked, years, Unicode in operating systems support was still largely missing).
-
How to get special characters in the oracle column only
Hi all
with spec_tab
as
(
Select ',' col1 of double
Union
Select ',' col1 of double
Union
Select 'something' double
)
Select col1
of spec_tab
How to get special characters in the oracle column only
You mean like this?
-------------
WITH spec_tab AS (SELECT ',,,,' col1 FROM DUAL UNION SELECT ',' col1 FROM DUAL UNION SELECT 'some thing' FROM DUAL) SELECT col1 FROM spec_tab where translate('~'||col1,'~0123456789abcdefghijklmnopqrstuvwxyz ','~')<>'~'
Output:
-----
COL1
,
,,,,
See you soon,.
Manik.
-
Hello
Is there a possible way to create these special characters in the name of the file as test.? docx or test? PDF to test the goal?
I do programming to detect this type of special characters in the file name. This modified script will this type of invalid char file appropriate name, so I need to have the sample to check if my script works.
I have OSX or Linux. Is there no workaround solution I created in the window itself?
or can someone create for me so I can go and download instead?
Thank you and best regards,
back4moreHi Backformore,
Thanks for posting your question in the Microsoft answers Forum. For any question concerning the development of programs, visit the MSDN hereforums.
-
Special characters in the classic report
Hello
I'm unable to display special characters in the classic report.
"For example""" is coming as ' '.
Is there a way to fix this?
It seems that use characterset "WE8ISO8859P15" is causing this issue, which is a single-byte character set and so unable to encode these characters.
Please correct me if I'm wrong.
-
Hello. Can he the word pdf conversion to retain the original character of the special characters of the algorithm? the formulas have special mathematical symbols. Conversion them kept?
The equations are a problem. If the equation is text, you can be lucky if you have the fonts on your system. Most of the time I have try, the fonts in the equation are garbage. Expect to have to retype the equations and some special characters. Much also depends on the existence of the fonts on your system. Just in my experience, the equations are almost impossible to convert.
-
empty data file with special characters in the name
Hi all
I'm having a problem with an empty data file which is in recovery mode.
Before the following has been a success:
ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
recover data file "fully_qualified_file_name";
ALTER database datafile 'fully_qualified_file_name' online;
But this time it does not work as I get an error:
ORA-01516: file nonexistent journal, data file, or temporary file
Using the file id does not work either.
When I created a record of control file I see the data file has special characters in the name:
' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'
Since it is empty, it would be possible to create the data file void anothr
using the:
ALTER database create datafile ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'
as ' / oracle/PRD/spdata2/r3i_8/r3i.data8';
and then recover datafile 'fully_qualified_file_name ';
ALTER database datafile 'fully_qualified_file_name' online;
How orders oracle faced with special characters?
Thanks for your adviceuser6737818 wrote:
Hi allI'm having a problem with an empty data file which is in recovery mode.
Before the following has been a success:
ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
recover data file "fully_qualified_file_name";
ALTER database datafile 'fully_qualified_file_name' online;But this time it does not work as I get an error:
ORA-01516: file nonexistent journal, data file, or temporary file
Using the file id does not work either.When I created a record of control file I see the data file has special characters in the name:
' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'It should work using a file as the definition of source file number and a new name for the new file. Works for me:
orcl> alter database create datafile 7 as 'c:\tmp\newname.dbf'; Database altered. orcl>
-
Find special characters in the name of the Image
Hi all
Request:
1. the need to find special characters or unwanted characters in the name of links (Figure$ .eps, abcd? cde.jpeg etc.)
2. the name links allows only [a - z] or [A - Z] or [0-9]
3. name links does not allow special characters such as (i.e.,?,!, @, $ etc...)
4. white space not allowed
Very urgent request...
Try the Code is:
var myLinks = app.documents[0].links.everyItem().getElements(); alert(myLinks.length) for(i=0; i<myLinks.length; i++) { var mySplit = myLinks[i].name.split("."); var myFinal = mySplit[0]; for(k=0; k<myFinal.length; k++) { if(String(myFinal[k]).match(/[a-z]/g) !=null || String(myFinal[k]).match(/[A-Z]/g) !=null || String(myFinal[k]).match(/[0-9]/) !=null ) { alert(myFinal); break; } } }
Thanks in advance
Siraj
Hi Siraj
Try this out
var myLinks = app.documents[0].links.everyItem().getElements(), badCharReg = /[^A-z0-9]/g, l = myLinks.length, badLinks = [], linkName = ""; while (l--) { linkName = myLinks[l].name.split(".")[0]; if (badCharReg.test(linkName)) badLinks.push(linkName); } if (badLinks.length) alert("Check out these\n"+badLinks.join("\n")); else alert("Have a nice day");
Trevor
-
How to enter special characters with the Run statement (@).
Hello
Oracle10g (R1)
NLS_CHARACTERSET = "AL32UTF8.
When I insert record with special characters like "hastened" with the customer tool insert it works fine, but I run the same INSERT statement execution i.e. statement "SQL > @/ path/Script_File_Name.sql ' special characters has not inserted correctly and it become something like 'h¿ta'.»»
How to enter special characters correctly race (@) statement?
Thank youIf you create a file in Notepad, select the ANSI or the encoding UTF-8 in the dialog box save as. Copy the Linux file in binary mode. Set the variable NLS_LANG ".» WE8MSWIN1252 ", if the file was saved with the ANSI coding or to. AL32UTF8", if the file was saved with UTF-8 encoding. Be sure to export the variable. Then, start SQL * more and run the script. I guess that you are on a U.S. or Western Europe of Windows version.
Thank you
Sergiusz
-
Does not not special characters in the password
Here's the function I used to apply the oracle password. I can able to use all the numbers, characters, but when I use special as cat (punctarray: ='!) » #$% & ()'' * +,-/ : ; <>=? _';) I can able to use only the characters # when I'm with all the other amazing it gives me an error
SQL > alter user u1 identified by nira86 #* wad456j;
change the u1 user identified by nira86 #* wad456j
*
ERROR on line 1:
ORA-00922: missing or not valid option
Here's the function
FUNCTION to CREATE or REPLACE verify_function
(username varchar2,
password varchar2,
VARCHAR2 old_password of past)
RETURNS boolean IS
Boolean n;
whole m;
different integer;
Boolean IsDigit;
because Boolean;
ispunct Boolean;
digitarray varchar2 (20);
punctarray varchar2 (25);
CharArray varchar2 (52);
BEGIN
digitarray: = "0123456789";
CharArray: = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ';
punctarray: ='! » #$% & ()'' * +,-/ : ; <>=? _';
-Check if the password is the same as the user name
IF (password) NLS_LOWER = NLS_LOWER (username) THEN
raise_application_error ("-20001, ' identical or similar to the user password");
END IF;
-The minimum length of the password checking
IF (password) length < 15 THEN
raise_application_error (-20002, 'length of less than 15 password');
END IF;
-Check if the password is too simple. A dictionary of words can be
-maintained and can be verified so does not allow the words
-which are too simple for the password.
IF NLS_LOWER (password) IN ('Welcome', 'database', 'account', 'user', 'password', 'oracle', 'PC', 'abcd') THEN
raise_application_error ('-20002, ' simple password ');
END IF;
-Check if the password contained at least a letter, a number and a
-punctuation mark.
-- 1. Check for the digit
IsDigit: = FALSE;
m: = length (password);
FOR I IN 1.10 LOOP
FOR j IN LOOP 1.m
IF substr (password, j, 1) = substr(digitarray,i,1) THEN
IsDigit: = TRUE;
GOTO findchar;
END IF;
END LOOP;
END LOOP;
IF IsDigit = FALSE THEN
raise_application_error (-20003, 'password must contain at least one digit, a character and a punctuation');
END IF;
-- 2. Check the character
< < findchar > >
car: = FALSE;
FOR i IN 1.length (chararray) LOOP
FOR j IN LOOP 1.m
IF substr (password, j, 1) = substr(chararray,i,1) THEN
car: = TRUE;
GOTO findpunct;
END IF;
END LOOP;
END LOOP;
Because IF = FALSE THEN
raise_application_error (-20003, ' password must contain at least one------)
Figure, a character and a punctuation ');
END IF;
-- 3. Search for punctuation
< < findpunct > >
ispunct: = FALSE;
FOR i IN 1.length (punctarray) LOOP
FOR j IN LOOP 1.m
IF substr (password, j, 1) = substr(punctarray,i,1) THEN
ispunct: = TRUE;
GOTO endsearch;
END IF;
END LOOP;
END LOOP;
Ispunct IF = FALSE THEN
raise_application_error (-20003, ' password must contain at least one------)
Figure, a character and a punctuation ');
END IF;
< < endsearch > >
-Check if the password is different from the previous password at least
-3 letters
Old_password past IF IS NOT NULL THEN
differ: = length (old_password) - length (password);
IF abs (differ) < 3 THEN
IF (password) length < length (old_password) THEN
m: = length (password);
ON THE OTHER
m: = length (old_password);
END IF;
differ: = abs (differ);
I'm IN 1.m LOOP
IF substr (password, i, 1). = substr(old_password,i,1) THEN
differ: = differ + 1;
END IF;
END LOOP;
IF different < 3 THEN
raise_application_error (-20004, ' password should differ by to)
(minimum 3 characters);
END IF;
END IF;
END IF;
-Everything all right; Return TRUE;
RETURN (TRUE);
END;
/What version of Oracle are you using? Before 11 g I think only allowed special characters were '_', ' $' and ' # '.
And 11 g, you need to put the password in quotation marks and must not use comma, backslash or double quote.
-
Special characters in the ResourceManager
Hi all
I have problems with the ResourceManager, we have a Flex 3 project with a L10n.properties file for the texts. Normally, we have access to this file using ResourceManager.getInstance () .getString ("L10n", "string") and it works, but now, we are helping other languages and special characters (such as u) are displayed as '? '.
What is the correct way to do it?
Thank you very much!
Check if your message file is UTF-8 codding
It works for me...
-
How to handle special characters in the Apex
Hello
In my application, I have two regions - region report (interactive report) and other is region HTML with text elements two - Empno and name
My report has two columns Empno (varchar2) and Ename (varchar2).
When I click on the link change in the column of the report, the empno should be a read-only value EMPNO and ename is a text with the value of the ENAME field.
When I run my application, I have encountered the following problems:
1. If my empno has special characters such as "#", the characters after that is not posting
2. If my empno has special characters such as "," characters after the decimal point is considered to be a value of next texitem
Here is my authentication information,
CTSAN_ORACLE_DB workspace
Username [email protected]
Password lakshmi321
URL: http://apex.oracle.com/pls/apex/f?p=9444:19:4292839314890159:
Please, I beg you. suggest me how to fix these problems.
Thank you
David...
Published by: David on August 13, 2010 03:05Do not pass the data values in the URL. If it is possible to escape values to make URL - and APEX parameter-safe, it is much better to avoid the problem completely.
Create a primary key of the substitution on the table which is an immutable discreet digital identifier and use it only as a URL parameter. In pages/target areas, use this value of PK to extract the data from the table.
-
Special characters in the password
Hi, I have chosen a password with caracter special: now @!
and then, it is impossible to type the character @, so I can't start my machine!
What can I do?Hello
Sorry, but now you have a big problem. For the BIOS password or supervisor password, it should be used only the following characters: a... z, a.. Z and 0... 9 paperChoice of some special characters will cause that the laptop not boot not. In this case, contact your authorized Toshiba Service Provider because the password must be deleted and there is no way you can do it yourself.
-
Hotmail compromised and the e-mail sent from the account (but not by me)
Hello.
My hotmail account was accessed by someone other than me. In addition, they sent an email on my behalf * of my own account * to a friend. As the content is of a sensitive nature, it caused a lot of trouble for me.
The person who consulted with my account was pretty sneaky to delete the email in the "sent" folder, but forgot the file deleted. If I was able to read and can say 100% that I never sent it me. I am very confused by the present.
I have changed my password, but I would go at the bottom of this. I would like to know how my email was consulted in the first place, and more important again, if there is a way to find who did this, then I can take the case more far and possibly prosecute legal, as I feel that my privacy has been violated.
I must point out that my password (at the time) has not changed. The one who did this, tact has left my account from what I can tell. Their agenda was just to send the mentioned e-mail, which leads me to believe that I probably know the person.
On a note more and probably another case, I have a problem confirming my security information for more secure my account so that this does not happen. I wanted to add another phone number and e-mail, but it just repeat myself that when I try and click on the tab "validate":
You added [email address] .com to your account, but it must be confirmed before you can use it.
Note: You can use your computer approved to confirm this information, the sign from this computer, go on the account overview page and then click on confirm next to this information.
I get a similar message when I try to confirm my phone number.
Thanks for any help, because I am very stressed out of all this.
I've had this year of email address and never been hacked before.
You might well be a misinterpretation of the events. Another explanation is that one of your friends has a malware infestation. The malicious software causes the computer to send messages to all persons named in their address book. The message is supposed to come from a person who is selected in the address book, but it's a subterfuge the message is actually the computer infected. This would explain why it is in your deleted items folder and not your sent items folder. Anti-spam on your computer defenses have identified the incoming spam message and put it where it belongs.
It is generally not easy to identify who has the infected computer. In the only case that I met, it was possible to narrow down the identity of the infected computer from the list of people who receive messages. A close examination of the list revealed a name that was not known to all the others, except for one who had the infected computer. Anti-malware running on the infected computer software ended the avalanche of annoying messages
You should be aware that what I have described is actually a very common way to distribute malicious software from one computer to another. Opening of the item deleted on your computer could lead to malware foothold on your computer and start a new wave of infected messages which, in this case, are sent from your computer to everyone in your address book. You must carefully check your computer for malware to make sure this does not happen or stop it if they started to be sent.
Start the computer in safe mode with network and download and install Malwarebytes (free version for individuals only), updated definitions and run in safe mode. Disable other security software while you do the analyses.
http://www.computerhope.com/issues/chsafe.htmhttp://www.Malwarebytes.org/products/malwarebytes_free
Download and run SuperAntiSpyware (Free Edition)
http://www.SUPERAntiSpyware.com/download.htmlWhen talking to friends the problem, be very careful what you say that the charges can very quickly lose you your friends. Explain how you check your computer for malware so that they know how they can check their own computers. Let them do, and I hope that the problem will end.
Maybe you are looking for
-
OfficeJet 4632: officejet 4632
This printer print on cardstock?
-
I have sudenly lost a years worth of emails
Hi, I use Outlook Express 6 with Windows XP, I noticed I lost years of email value out of all my files, I used Outlook express 6 for a long time and I've never met a problem like this, I lost every email since 6 May 2010 until April 8, 2011 on all fi
-
Error code 0 x 80070002-Windows 7 backup
There is a glut (too much) threads on this Windows Vista, 7,? system backup error code 0 x 80070002. It happens from time to time for me. And the various 'solutions' are the construction of a new system to play with the registry. EU burn can't read f
-
I want to know that how many times can I install windows (any version) on different PC after unistall. in other words, if I installed in a pc then uninstall, then install on a different computer (PC), then how many times can do this process or repeat
-
HelloI know the question on reading only rows in tabular form have been asked several times here on the forum, but I couldn't find something that could help me with my problem. My effort to read-only works 90% correct. It does not change the line to