P
Pen Ttt
i want to convert a string "-34\n \302\240" into "-34"
irb(main):001:0> "-34\n \302\240".gsub('\302\240','').strip.chomp
=> "-34\n \302\240"
how to convert it?
thinks for your help.
irb(main):001:0> "-34\n \302\240".gsub('\302\240','').strip.chomp
=> "-34\n \302\240"
how to convert it?
thinks for your help.