similar to: character encoding

Displaying 20 results from an estimated 100000 matches similar to: "character encoding"

2014 Nov 19
0
incompatible character encodings: ASCII-8BIT and UTF-8
Hi, I have problem with showing some string in my site with Rails 4 I get this message: incompatible character encodings: ASCII-8BIT and UTF-8 concerning this html sequence in an erb file: <h3><%= MyString.to_s.force_encoding("UTF-8") %></h3> I get this problem only on *production server,* but I do not have the problem on my local computer What can I do with this
2010 Sep 15
1
csv/Rails 3/ruby 1.9.2p0/mysql encoding problem
I''m having an encoding problem, even though I''m attempting to have all my data always be in utf-8. Here''s the path the data takes: I have a CSV file that I believe is in utf-8, because I''m looking at it in a hex editor. One of the words is: 64 65 62 74 6F 72 E2 80 99 73 which translates to: debtor’s [that is, it contains a smart apostrophe] Now,
2010 May 04
2
Encoding problems, applying a patch, how to???
So, i''m facing issues with encoding, since I need to write an application in portuguese-brazilian. This is the error i''m getting: "incompatible character encodings: UTF-8 and ASCII-8BIT" The curious thing is that i have a few other views with "special" characters, like Á or Ç, and all of them works. I have saved this view using the UTF-8 char encoding and
2010 Aug 01
3
Problem with non-ascii characters in forms: "incompatible character encodings: UTF-8 and ASCII-8BIT"
Hi First off, I''m using Ruby 1.9.1p378 and Rails 2.3.8. I was creating a minimal application to test handling of Norwegian special characters when I bumped into this strange problem... I have a simple Car model with fields maker:string and model:string. For the controller I planned to just have an index action do all the work: class CarsController < ApplicationController def index
2010 Mar 19
0
Rails, 1.9 & Encoding - does it work?
Hey all, I''ve been looking into moving our Rails app to 1.9 and am having lots of trouble with string encodings, especially when it comes to file uploads. We allow users to upload text files, which may, or may not, have accented characters in them. If there are accented characters, we insist that the file is UTF-8, but if there are no accented characters we don''t care what
2010 Jul 01
25
Encoding problems with Rails 3 + Ruby 1.9.1 (big surprise)
I have kind of an interesting problem. I have a form wherein people enter information. Big surprise. If they enter any "weird" characters like ø or é or whatever, the form will submit and all is well. However, I have a select box for the state which, if you''re looking at Spain, has states like A Coruña, Cádiz and País Vasco. These are pulled from the database which is set to
2010 Dec 10
0
Encoding issues when uploading files
Hello everybody, I have some troubles with uploading files in my Rails project. I use Rails 3, Ruby 1.9.2, rack 1.2.1, and both webrick / passenger on apache I was investigating and have isolated the strange behaviour on a simple empty project: view: <% form_tag({:action => ''upload''}, :multipart => true) do %> <%=text_field_tag :desc %>
2011 May 12
0
utf8 characters in cucumber feature file
In my feature file, I have the following line: When I search with <q=+Brontë> using xml This blows up with: incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) Is there a trick to getting non-ascii characters in a .feature file? (I''m pretty sure that my feature file is saved in utf-8). -- You received this message because you are subscribed
2012 Feb 07
10
Encoding error
Hello, I have in my db a register what have special characters, and when I try to put on my form to edit this values, this happens: incompatible character encodings: UTF-8 and ASCII-8BIT Extracted source (around line #4): 1: <%= form_for :group, :url => { :action => "update" } do |f| %> 2: <%= utf8_enforcer_tag %> 3: <label>Nome do grupo</label>
2011 Jan 23
1
Force UTF-8 encoding
I''m writing an upload script for contact management, but having encoding issues: #=> Encoding::UndefinedConversionError: "\xFA" from ASCII-8BIT to UTF-8 I will not always know the encoding supplied, and this is the result of `some_string.encode("UTF-8")` I have also tried .force_encoding("UTF-8") to no avail. For now I''m simply trying to
2010 Oct 25
2
form_tag with remote=>true Error during failsafe response:
I am trying to find out why form_tag with remote => true is not sending an ajax response and only sending HTML. I have started a basic Rails App with two pages and am following the Railscast 205 UJS example. Every time I include:- <%= form_tag homepages_path, :method => ''get'', remote => true do %> I get from the server(WEBrick):- (Ruby 1.9.2 and Rails 3) A 500
2013 Jul 02
0
incompatible character encodings: UTF-8 and ASCII-8BIT
Hi as part of our setup we have erb templates that are SQL files, we parse then to add in some user details to the SQL (these come from a hiera json file created from PHP) before using that file to create the database. If that data includes UTF-8 characters (for example an e with an acute accent) we get the error: Failed to parse template Detail: incompatible character encodings: UTF-8 and
2010 Jul 09
0
"incompatible character encodings: ASCII-8BIT and UTF-8"
Hi! Just started to learn Rails, and I get this error when i''m trying to make a simple forum-app (much like the screencast about making a blog in 15min at rubyonrails.org). This appears when I try to render a partial - that is posting a comment containing swedish letters å (&aring;), ä (&auml;) and ö (&ouml;). I can view those posts by going to localhost:3000/posts/ using
2010 Nov 01
1
Encoding::UndefinedConversionError on a simple file upload (rvm, MRI-1.9.2-p0, rails 3.0.1, apache+passenger)
Hello everyone. I am having the encoding issue on a simple file upload action: Encoding::UndefinedConversionError in MainController#upload "\xC4" from ASCII-8BIT to UTF-8 The action looks like this: def upload @uploaded_io = params[:upload] File.open(Rails.root.join(''public'', ''images'', @uploaded_io.original_filename), ''w'')
2011 Sep 04
2
Encoding error
I create scaffold and trying to save text with cirllic symbols i recieved: Encoding::UndefinedConversionError: U+043F from UTF-8 to US-ASCII: my database charset is utf8 in database.yml encoding:utf8 why rails is still trying to convert text to ascii? what should i do to save my data in utf8? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Jul 22
0
TemplateError while rendering german special characters
Hi I am using following versions of Ruby and Rails on arch linux [hardik@sunshine: kandibank ]$ ruby --version ruby 1.9.1p429 (2010-07-02 revision 28523) [x86_64-linux] [hardik@sunshine: kandibank ]$ rails --version Rails 2.3.8 I am using the sqllite database in development mode. I can store a string having German special characters (umlauts) without a problem i.e. Müller. But when Rails
2010 Dec 15
3
Spreadsheet gem character encoding
Hi everybody I''am working on a Rails app (using utf-8) in which I use the Spreadsheet gem to generate Excel files (.xls in my case). I ran into some issues when trying to write foreign characters to the generated Excel-File. The solution I found so far is to use Iconv like this: Iconv.conv(''ISO-8859-9'', ''utf-8'', some_string) This works fine with for
2011 Oct 27
0
error installing character-encoding gem on ubuntu 11.10 64bit
Hi all, I have error installing character-encoding gem on ubuntu 11.10 64bit. The error details are in following link http://pastie.org/2768063 -- Posted via http://www.ruby-forum.com/. -- 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
2011 Jun 17
7
Encoding
What''s a good solution for fixing character encoding problems for compatibility between ascii and utf-8? The database is postgres and is encoded in utf-8. Once in awhile there will be a compatibility error from strings from a webform. Is there a command to fix this besides using a_string.force_encoding(''utf-8'')? Even this doesn''t seem to always work either.
2009 Oct 15
5
invalid multibyte character error
Hi. When I try to use multibyte characters in my rails controller I get an invalid multibyte characters error (<rails_app>/app/controllers/admin_controller.rb:6: invalid multibyte char (US-ASCII)). Here is my controller: contoller AdminController < ApplicationController def read @title = ''Заголовок страницы'' end end Here is my haml template extraction: ...