Steven G. Harms
2008-Jan-05 20:13 UTC
Trying to understand unicode character entry, goes into postgres DB backing rails, saved to yaml as \
Examine the Unicode standard''s code page collection for "Latin small letter a with macron". Nets U0100.pdf "Latin small letter a with macron" appears on chart as 0101. This is a hexidemial number which points to U+0101 as its code point. Converting 0101 to decimal gets you 257, this is the same as the HTML entity code. HTML code point is 257. That is &257; gives you &257; != 325. OK, so I can link this guy back to the Unicode source. But here''s the question, what''s up with the two broken values. Put &257; character into a view via Rails that is back-ended by a PostGres database. Using script/console, write the collection of models that contain this accented character to a YAML file. "Latin small letter a with macron" is stored in a YAML dump of accented charcters as: \xC4\x81 Hm, OK that''s a start. Somehow 0101 or 257 is linked to C4 81 Let''s convert those two to decimal and see if correlation becomes clear ( I know, BTW, the database that holds that entry is in UTF-8). C4: 196 81: 129 196+129=325 != 0101. Hm, look at documentation. Be stumped. Send mail to mailing lists for help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- [Repost, with Formatting] Trying to understand unicode character entry, goes into postgres DB backing rails, saved to yaml as \xc4\x81
- R on Solaris 10 x64
- How to produce a macron symbol (overline / overbar) on a plot
- Re: virt-customize fail to inject firstboot script when running it from script.
- Re: virt-customize fail to inject firstboot script when running it from script.