Hi,
I''m new to ruby and rails and have some quick questions. We want to
build an app that needs to:
a. handle unicode
b. handle, say someone submitting an MS word doc to the
application, this being taken into the app and formatted out to nice
sane HTML.
I know I could do all this with perl, what I want to know is are
there libraries that can help do this with ruby?
Any pointers, any advice much appreciated...
cheers,
mark.
On 5/13/05, Mark Simpkins <mark-E24v8T88dstJVGTJbrTDNg@public.gmane.org> wrote:> a. handle unicodeJust add -Ku to the line that starts ruby. So like "/usr/bin/ruby -Ku " to enable unicode. Also make sure to set the encoding to unicode in the headers of any html pages you generate.> b. handle, say someone submitting an MS word doc to the > application, this being taken into the app and formatted out to nice > sane HTML.I''m not aware of a library to do this in ruby, but if you have a windows box with ruby and ms word installed, you could use the win32ole library to control Word and do what you needed. See this example: http://rubyforge.org/snippet/detail.php?type=snippet&id=7 Jason