similar to: One page in app keeps rendering as text/plain

Displaying 20 results from an estimated 100 matches similar to: "One page in app keeps rendering as text/plain"

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
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;
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 (''?''
2007 Jan 18
4
Problem with encoding - characters such as öäü
Hi I''m trying to use german characters on a ruby on rails application, but for get ? on dropwdown menus. The database, tables and fields are encoded utf8_general_ci. I have this in my application controller: class ApplicationController < ActionController::Base before_filter :set_charset before_filter :configure_charsets def set_charset @headers["Content-Type"] =
2010 Jun 11
2
Need help getting nouveau drivers working on Fedora 13
My desktop computer uses a GeForce FX 5200 card and, when I was using Fedora 11, the kmod-nvidia drivers (a Fedora-specific repackaging of the binary blob) worked Just Fine. Now, even though I've followed all of the instructions for them, they don't. In fact, my system won't even complete booting if they're active. (I'm posting from a laptop, while I'm trying to get
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 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 Nov 04
0
headers[''Content-Type''] & link_to_remote on Rails Edge
I''m on rails edge and am calling an after filter on my actions. Works except for my ajax calls via link_to_remote. When I inspect headers, I see the ''Content-Type'' is key for an object rather than a string. Shouldn''t it be a string? Anyone know if this is a bug or if I''m dealing with this incorrectly. Thanks, Jamie The code: after_filter
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 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/.
2007 Apr 02
19
Pref for beginner book: Wrox (Holzner) or Ruby for Rails?
I''m a beginner. I''ve done the apple tutorial, Agile ROR (the depot app, I stopped after that, a little to advanced with no base knowledge of Ruby), Why''s guide and my copy of Chris Pine''s book today. After Pine, I''m going to buy either the Wrox book or Ruby for Rails book. I did a search and there''s not too much on the Wrox book (Holzner)
2006 Apr 15
0
[maybe ot] Special Characters in DB Fields
I have MySQL on a Linux (RH) server and Mac OSX. I did a mysqldump on the Linux box and imported it into the database on the Mac. The following text is in one of the fields: Maui???s Westin Ka???anapali This is supposed to read Maui''s Westin Ka''anapali [note: straight quotes shown here are really apostrophes] In fact, it renders properly when served up from the Linux box
2007 Jul 30
0
Rails/MSSQL error
Hi, I have been encountering this error when I try to save text with japanese characters: DBI::DatabaseError: Execute OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server Line 1: Incorrect syntax near ''20070730''. HRESULT error code:0x80020009 Exception occurred.: INSERT INTO categories ([category_name], [updated_at], [created_by],
2016 Jan 08
0
yum-cron / email sending problem
I want to use yum-cron with email notificaton. The upgrade runs, but i get no message. yum-cron aborted with this message: [root at h1 yum]# yum-cron Traceback (most recent call last): File "/usr/sbin/yum-cron", line 711, in <module> main() File "/usr/sbin/yum-cron", line 708, in main base.updatesCheck() File "/usr/sbin/yum-cron", line 631,
2006 Feb 05
2
working with rails and unicode
I''m trying to get basic unicode support working using the "Iteration A1" sample application from the "Agile Web Development With Rails" book. Following the "HowToUseUnicodeStrings" wiki document, I have made the following changes: config/environment.rb: # Include your application configuration below $KCODE = ''u'' require
2006 Apr 11
8
Does Rails provide solid support for UTF-8?
I need to use UTF-8 in my app and was wondering if Rails would support it properly. Some sites seem to be saying that it has weak internationalization support. Is this true? If so, where is the problem? What should I look out for? Are there tweaks, plugins or gems that fix the problem? TIA. David -- Posted via http://www.ruby-forum.com/.
2006 Mar 10
7
Problem saving data in different languages
Hi, I currently have a site that lets people enter info and submit it to the database. But the problem is the it lets people enter data in their language (portuguese and spanish) and all the special characters for those languages get replaced by symbols. Any idea how would I fix that? Thanks a lot. -- Posted via http://www.ruby-forum.com/.
2006 Apr 19
5
Swedish characters problem
Hello, I''m playing around with Rails and I''m having problems with displaying swedish characters. This is how far I''ve gotten: I have a controller... class MiscController < ApplicationController def swedish_chars @chars_to_display = ''???'' end end ...and a template (swedish_chars.rhtml) <head> <title>Test with swedish
2006 Jul 18
9
Displaying HTML pulled directly from a database
How can I get RoR to display html pulled directly from a database, without converting the tags. (e.g. if "<h1>Hello</h1>" is stored (as text) in a database, how can I get RoR NOT to corvert it to "&lt;h1&gt;Hello</h1>", but instead to just pass the tags along so that "Hello" displays in bold. I''m sure it''s just a