[ad_1]
I have got this on the top of my code.
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
That’s what I want to return…
def msg_map(stmt)
thanks="Thank you."
spanish="¿Quieres hacer un pago? ¿Tienes dudas sobre tu factura y hablas inglés? Llame al 702-525-4360 Se habla Español.".force_encoding('UTF-8')
return thanks if @file_name =~/nnn/i
case @profile_id
when /000-000-sta1/
case stmt['RemitAddress1']
when /GIVEN NAME/
spanish
else
thanks
end
That’s what I got as an outcome
´¿Quieres hacer un pago? ´¿Tienes dudas sobre tu factura y hablas inglˆ’s? Llame al
702-525-4360 Se habla Espaˆ–ol.
I am using emacs on MobaXterm – What else could I possible do to return the correct accented Spanish words?
Thank you…
[ad_2]