处理文本框中的特殊字符 [英] handling special characters in textbox

查看:98
本文介绍了处理文本框中的特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我的表格中有一个文本框。我按照相同的顺序输入以下值。

test`~!@#$%^&*()_ + - = [] \ {} |;'':, /<>?



我想把这个值存储在表格中。这样做会产生以下错误



字符串''之前的未闭合引号,<。> /?''''。



我发现它的结束单一的问题引号后几个字符很少。但我希望输入相同



请提供解决方案,如果有的话。



谢谢

解决方案

%^&*()_ + - = [] \ {} |;'':,。/< >?



我想将此值存储在表格中。虽然这样做会给出以下错误



字符串''之前的未闭合引号,<。> /?''''。



我发现它关闭单引号并且之后几个字符很少的问题。但我希望输入相同



请提供解决方案,如果有的话。



谢谢

您好,



请尝试用单引号替换单引号



replace('',''''')这将帮助您避免单引号错误


Hi All,

I have a textbox in my form. I am entering following value in that in same sequence.
test`~!@#$%^&*()_+-=[]\{}|;'':",./<>?

I want to store this value in table. While doing that its giving following error

Unclosed quotation mark before the character string '',<.>/?''''.

I found the problem that its closing single quotation mark and has few characters after that. But i want the input to be same

Please suggest solution if any.

Thanks

解决方案

%^&*()_+-=[]\{}|;'':",./<>?

I want to store this value in table. While doing that its giving following error

Unclosed quotation mark before the character string '',<.>/?''''.

I found the problem that its closing single quotation mark and has few characters after that. But i want the input to be same

Please suggest solution if any.

Thanks


Hi,

Try this replacing the single quotation mark with 2 single quotation mark

replace("''","''''") this will help you to avoid single quotation mark error


这篇关于处理文本框中的特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆