Displaying 20 results from an estimated 2000 matches similar to: "Does Rails provide solid support for UTF-8?"
2005 Aug 28
7
Unicode support in FXRuby 1.6
All,
As some of you know, Jeroen has added support for Unicode strings in
the unstable development version of FOX (version 1.5). I''m trying to
plan ahead to decide how best to support this for FXRuby 1.6, but I
don''t really know anything about Ruby''s support for Unicode or i18n in
general. If you''re familiar with this topic (how/if Ruby deals with
Unicode
2007 May 04
22
CampingConf?
Campers --
In a few weeks there will be a bunch of people in Portland, OR, for a
conference. A long time ago some campers mentioned that might be a
good time for us to get together and hold a mini CampingConf for a few
hours. Is anyone interested? Does anyone want to organize it?
I''m thinking Wednesday night, May 16.
We could possibly get a spot at FreeGeek (not likely since they are
2007 Jul 29
2
fcgi?
Hi,
I''ve been looking for a light weight alternative to rails for a few
small projects, and just came across merb, which looks perfect. The
only issue is that merb seems to be tied to mongrel, and I have to
deploy to our internal infrastructure which uses FastCGI.
How difficult would it be for me to modify merb to support a fcgi
interface (actually a rack interface - rack is
2006 Jan 30
15
i18n when?
Hi all,
Just wondering... Are there any plans to include i18n support in Rails
anytime soon?
I guess this is about the only feature I''m realy missing in Rails.
Any thoughts?
Regards,
Harm de Laat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/63681052/attachment.html
2006 Jan 17
4
textarea problem with accentued chars
Hello, I have a problem with accentued characters return from a textarea
I have 3 simple files to show example ( below ).
index.rhml : If I put "?nial" inside the textarea, then submit to
:action => post
post.rhml : wrote
?nial
195
"\303\251nial"
//
params[:comment][:message] return => ?nial
params[:comment][:message][1] return => 195 ! ( 195 is not
2006 Jan 30
5
a RJS problem/patch
Hi,
add_rjs_to_action_view.rb of javascript_generator_templates
doesn''t work with setting Content-Type in a controller.
(e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=utf-8"
end
end
I
2007 Jan 20
1
Camping on Media Temple?
I''m getting into camping in a big way--I love that you can put
together full-fledged apps with so little code and overhead.
Does anyone know of any documentation about getting Camping apps
running on Media Temple''s GridServer? Of course I''ve found the
Camping server page[1], but I can''t work out how to associate running
camping apps with a (sub)domain
2006 May 05
8
pdf/writer: table.render_on best practices?
Hi All,
I generate a pdf report that contains a table. The report is 14 pages, and
it takes 20s to be rendered. Most of these 20s are spend in the render_on
method. I wonder if it is possible to speed up that process?
To create the report, I do the following:
1) Setup pdf layout:
# Setup pdf layout
pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"})
2007 Mar 15
1
Helper content_tag and Blocks
The content_tag helper allows you to do things like:
content_tag(:p, "Hello world!")
# => <p>Hello world!</p>
It can take in blocks, for functionality like this:
<% content_tag :div, :class => "strong" do -%>
Hello world!
<% end -%>
# => <div class="strong"><p>Hello world!</p></div>
Unfortunately blocks
2006 Jan 26
2
Newbe Question: Character Encoding
I have to present german umlaute as "?" on my webpage. When writing the
text within the view, everything is fine - the characters are presented
correctly. When I declare variable within the controller (e.g. via flash
or as a list of values for a listbox) the text is displayed with the
umlaute replaced by strange characters.
I assume I have to adjust the character encoding somewhere.
2006 Apr 20
3
How to restrict access to images by user?
Hi,
I have a some image files that belongs to some users. Only the owner of an
image should be able to see it.
How can I do that?
I don''t think I can use send_data, because I want the image to be displayed
on a "rendered" page. I don''t think I can place the images in the public
folder, because if some user can figure out the name of the image then he''ll
be
2006 May 08
2
How to set the default language in GetText?
How to set the default language in GetText?
The default language of GetText is en,and I want to change it to another
language,and also keep the ability to change to any other languages by
just click the according href.
Currently I use:
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html;
2007 Feb 28
1
One page in app keeps rendering as text/plain
Here''s what I get from wget -S:
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Wed, 28 Feb 2007 15:52:06 GMT
Server: Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a
mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4
FrontPage/5.0.2.2635.SR1.2 mod_ssl/2
.8.28 OpenSSL/0.9.7a
#<#<Class: 0x2a96d0b978>:0x2a96d0b928>Content-Type:
2006 Feb 25
5
Setting character encoding - do I do it with Rails or lighttpd?
I have a page which validates "tentatively," because the validator
uses the default character encoding. None was specified apparently,
so it falls back to UTF-8. How and where do I specify the character
encoding?
Pat
2006 Mar 05
5
special characters?
I''m not sure if this is something in Rails or MySQL, but characters like
? are showing up funky in my app. I see ''?'' in the DB using a query
browser, but in the app it shows up as ''A1/4.'' Do I need to use another
charset or something?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 28
7
windows sqlite client?
Hi all,
Does anyone know a good windows client for sqlite 3? typical use is create
and modify tables and export creation queries.
Thanks,
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060228/363834cf/attachment.html
2006 Sep 19
9
Very strange: Umlauts (äöü) aren't displayed correctly in
Hi all
Take a look at the following video, please... I just'' can''t help me
anymore...
http://josh.ch/files/temp/rails_problem.mov
I''m sorry for the bad quality, it''s just a demo of Snapz Pro X 2... ;-)
But I hope you''ll see enought...
Thanks for any help.
Josh
--
Posted via http://www.ruby-forum.com/.
2006 May 31
7
Getting 22 elements
Hello,
I''ve done
===
class HomeController < ApplicationController
def index
@country = Country.find(:all, :include => "cities")
end
end
===
And rhtml is:
===
<% @country.each do |country| %>
<h1><%= country.name %></h1>
<% country.cities.each do |city| %>
- <%= link_to city.name, :action =>
2006 Mar 22
9
Display problem
hey guys,
Does anyone know why the french letter "?" is displayed as a question
mark "?" inside an <h1> tag ?
--
Posted via http://www.ruby-forum.com/.
2006 May 09
4
Ajax calls and characters encoding (accents)
Hello, my application controller defines
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=ISO-8859-1"
end
Everything is fine and accents are rendered correctly in the browser.
However, when I call a controller/action from Ajax (Prototype), the
charset is not taken in account and accents are garbage displayed (''?''