Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Jhoseph-Marquez · Apr 04, 2017 at 05:27 AM · wwwmysqlphpc# tutorial

C # Does not recognize characters after space

alt text

presentacion1.png (187.0 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jamb84 · Apr 04, 2017 at 05:44 AM 1
Share

Are you URL encoding the value? %20 or + for spaces?

avatar image Jhoseph-Marquez jamb84 · Apr 04, 2017 at 12:26 PM 0
Share

Can you give me an example?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by tanoshimi · Apr 04, 2017 at 06:39 AM

Always escape any user-entered text before submitting it to a web handler. (And, if you're using these parameters to populate a high score table, I really hope you're using a stored procedure rather than dynamically constructed SQL at the other end)

 string URL = WWW.EscapeURL("http://...." + txt01Codigo.text + "&NOM=" + txt02Nombre.text);
 WWW connection = new WWW(URL);
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Apr 04, 2017 at 12:41 PM 2
Share

You used EscapeURL wrong in this case. You only want to escape parts of the URL that should not contain URL special characters. When using it like this your URL would become an invalid URL.

You should use it like this:

 string URL = "http://...." + WWW.EscapeURL(txt01Codigo.text) + "&NO$$anonymous$$=" + WWW.EscapeURL(txt02Nombre.text);
avatar image Jhoseph-Marquez Bunny83 · Apr 05, 2017 at 01:41 AM 0
Share

Excellent brother thank you very much.

avatar image
0

Answer by Jhoseph-Marquez · Apr 06, 2017 at 02:01 PM

%20 for spaces

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity - MySQL data loss 0 Answers

Is it possible to let a variable in c# to get the value of a variable in php. 0 Answers

About renting the host for the game 1 Answer

Upload audio file into mysql database 0 Answers

How Do i check for Duplicate username in database 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges