Hi!<div><br></div><div>It looks like your input is being converted to a multibyte character encoding (such as utf-8, which we're most likely looking at in the second version) on its way from your brower, via the database and back to your browser. I must admit that i'm no expert and i did have to double check the terminology on wikipedia, but both the Ä and Å characters in the output has an extra character tucked on, coincidentally these two characters are encoded as 196 and 197 in latin1, both valid values for a "leading byte" which are expected to be followed by one "continuation byte".</div>
<div><br></div><div>TLDR; Are you declaring the correct charset in your markup?</div><div><br></div><div>MVH Magnus</div><div><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 10:42 PM, Wes James <span dir="ltr"><<a href="mailto:comptekki@gmail.com">comptekki@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When putting some data in to riak or postgresql the data coming out<br>
isn't right. For instance the text going in to the database is:<br>
<br>
Ekologie lučních porostů<br>
<br>
But when a search is done on the data (via cowboy), the results coming<br>
out look like:<br>
<br>
Ekologie luÄ ních porostů<br>
<br>
When I was working with lists in the past (using yaws), it seemed to<br>
work, but the results coming out are binaries and I think the binary<br>
representation is causing the problem or converting from binary is<br>
causing the problem.  Is there a way to fix this?<br>
<br>
When looking at the data in psql it looks right.<br>
<br>
Thanks,<br>
<br>
-wes<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>