depdivr Posted October 24, 2011 Share Posted October 24, 2011 I am thoroughly confused. I wrote some code in notepad and everything worked fine. I needed to make some large scale additions to it so I imported some text to word to better cut/paste and change the variables. When I brought back into notepad the code started breaking due to the double quotes that word used. When I set the variable value in notepad it looks like this. <OPTION value ="Turftan">Turftan</OPTION> When I do it in word(and paste it in here) i get this <OPTION value =“Turftan”>Turftan</OPTION> When the program runs from the notepad version it runs fine because the value is just the text value. When It runs from the word version then the value includes the quotations. Why is this? Link to comment Share on other sites More sharing options...
thescientist Posted October 24, 2011 Share Posted October 24, 2011 most likely some sort of entity converting that Word is doing. Since Word is a word processor, I wouldn't use it for editing and writing code. Perhaps you might want consider upgrading your editor to something a bit more sophisticated, just to help make the work a bit more pleasing. There Notepad++ that you could tryout. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 24, 2011 Share Posted October 24, 2011 Word doesn't use regular double quotes, it replaces them with angled quotes. So in the code they aren't actually quotes, just some other arbitrary character. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.