search for: utf8_to_gbk

Displaying 1 result from an estimated 1 matches for "utf8_to_gbk".

2010 Sep 24
4
invalid argument for file creating
...cial characters,such as [ ,which leads the following error: ##### Errno::EINVAL in Lyric spiderController#scrap_one_category Invalid argument - e:/rails/lyric/public/song/e/Energy/ [ar:Energy.lrc ##### I use the following codes to create and write to files: ##### File.open(singer_dir+"/"+UTF8_TO_GBK.iconv(song_title)+".lrc",''w'')do |f| f.write(lyric_initial_data) end ##### It is impossible to drop those special characters individually,and they are valid file names on my windows system when i manually create the file using them. I have used the CGI escape metho...