Hi,
I am trying to replace ‘?’ with ‘e’,but no luck
s = “V\345ctor”
s.encode!(‘ASCII’,:invalid => :replace) # => “V?ctor”
s.encode(:fallback => {’?’ => ‘e’}) # => “V?ctor”
any help please?
Hi,
I am trying to replace ‘?’ with ‘e’,but no luck
s = “V\345ctor”
s.encode!(‘ASCII’,:invalid => :replace) # => “V?ctor”
s.encode(:fallback => {’?’ => ‘e’}) # => “V?ctor”
any help please?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs