curl /do shell script problems

my code uses curl to download html code to a variable and when i immediately echo it to a file, everything is perfect but when i try to copy only some parts, the signs:

" - ' 

are changed into some weird series of characters. is there any way to prevent this. and ifnot, any way to autmoatically change them back?