I am just saying that the browser thinks the information it is receiving
is
of encoding type X while the server/program is sending encoding type Y.
e.g. ruby sends UTF-8, but excel 2010 is encoded with ANSI by default
(i
think). This would mean that your special characters are not going to
be
available. Program sends I know of only two reasons why it would not be
able to properly read or display any character (not specific to ruby or
any
language): Encoding Mismatch or Missing Fonts. My guess is encoding.
e.g
This may help with checking/changing your encoding.
I am just saying that the browser thinks the information it is receiving
is
of encoding type X while the server/program is sending encoding type Y.
e.g. ruby sends UTF-8, but excel 2010 is encoded with ANSI by default
(i
think). This would mean that your special characters are not going to
be
available. Program sends I know of only two reasons why it would not be
able to properly read or display any character (not specific to ruby or
any
But in excel column those values are quite OK,only the problem is when
program reading the excel column by the above program, something wrong
happened. definitely it is encoding problem. So in my code doing some
change- can you guide me?
But in excel column those values are quite OK,only the problem is when
program reading the excel column by the above program, something wrong
happened. definitely it is encoding problem. So in my code doing some
change- can you guide me?
Do you ever read ANY of the links people provide?
I’m sure I’m not the only one, but why is it you seem to want people to
spoon
feed you everything? You’re right, you have an encoding issue.
You have some sample Excel data that comes into Ruby incorrectly, so now
try
stuff! Go read the encoding links provided, you’ll find there’s a very
elegant
way in Ruby to take the existing encoding and change it. Run a few
tests.
Reencode the incoming string with multiple encoding methods. Look at the
output,
When you see the one that fixes your issue you’ll know exactly what to
do.
Wayne
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.