开发者

ruby on rails convert cp1251 to utf8

开发者 https://www.devze.com 2023-03-19 10:02 出处:网络
I\'m using remote server request to get geodata @xml = Net::HTTP.get_response(URI.parse(\"http://ipgeobase.ru:7020开发者_如何学JAVA/geo?ip=144.206.192.6\")).body

I'm using remote server request to get geodata

@xml = Net::HTTP.get_response(URI.parse("http://ipgeobase.ru:7020开发者_如何学JAVA/geo?ip=144.206.192.6")).body

The server response comes in cp1251, how to convert it to uft-8?

0

精彩评论

暂无评论...
验证码 换一张
取 消