similar to: utf-8 BIG problems

Displaying 20 results from an estimated 1000 matches similar to: "utf-8 BIG problems"

2006 May 19
1
database.yml and encoding: utf8 -> mysql error
I have Rails 1.1, MySql 5.0 and would like to stor text as utf8 in the db. I have changed the character set and collation in the db to utf8 and utf8_danish_ci - also checked the mysql to if its ok: show collations like "%danish%"; utf8_danish_ci utf8 203 Yes 8 I then add the following environment.rb: $KCODE = ''u'' require ''jcode'' och database.yml
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 Jul 11
0
malformed utf-8 character error
Hi, I am using ajax scaffold generator with charset=iso-8859-9(Turkish)... Edit & Create buttons work correctly when there is no turkish chars in the current record. But, if there are turkish chars in any of the fields in the current row, buttons don''t work... (loading indicator simply spinning forever...) I put the KCODE=''u'' line in
2006 Jan 10
1
Validating Umlauts
Hi there, I''m building a rails application for German and English speakers. However, I''m having some problems validating German-specific characters (????). I have a tag-model which validates format of :name, :with => /^\w+$/. This throws an exception if german characters are used. My tables are all utf-8 and my environment.rb has the lines $KCODE = ''u''
2006 Mar 21
2
How do I get substring of utf-8 string?
I''m trying to get substring from a utf-8 encoded string. (say, first 50 characters of the string) String#[0..49] would give me the first 50 bytes not 50 characters.. I know there is jcode library, but it only let you count number of characters in utf-8 string. unicode gem doesn''t seem to help much. unicode_hacks gem seem to solve the problem, but it also seems to
2005 Apr 26
10
Cannot force WeBRICK into submission (UTF-8)
Hello everyone! Pushing my new rails project I stumbled upon some weird problem. I cannot force WeBRICK to show me my MySQL records in UTF-8. All I recieve into the object (instead of russian letters) are question marks (a la ?????? style). I am running MySQL 4.1 (the one with switchable charsets) and a binary Ruby extension for it, all on OSX. To me it looks like MySQL never recieves what I
2007 Apr 29
1
Chinese full-text support! Still fail-_-
Hi all, I want to use ferrent in my website but when i input chinese words, i have the same symptom like Chengcai. In order to fix it, i have reviewed all the topics about chinese support in our forum and tried all the way your guys suggested but still made any progress. i downloaded the latest version of ferret from svn. Thanks and regards. captain Chengcai He wrote: > Hello everyone!
2007 May 23
1
Memory Leak When Searching For Multilingual Keyword(s)
On Windows XP, I played the AAF demo (svn://projects.jkraemer.net/acts_as_ferret/trunk/demo) that works nicely with English content. However, if the keyword is non-English (no matter whether there is any content in db), the server immediately causes memory leak over 1GB and stops responding. The languages I tried include: French (utf-8) German (utf-8) Spanish (utf-8) Chinese (utf-8) Japanese
2005 Dec 30
0
L18n help
i need some help writing some code in rails about cookies. what i want to do is depending on the cookie value sent i want to set the language for the page . the code is something like in applicationcontroller.rb $KCODE = 'u' # lets go unicode, you will have less trouble ... require 'jcode' # and use the right string methods for utf-8 # The directory where translation files
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"] =
2007 Jan 19
1
Trouble with Rails/Ri18n
Hi, I am new to Ruby/Rails but totally fall in love with :D Nonetheless, today I am totally stuck with Ri18n. I basically followed the 10 Steps to Make Your Rails Apps Multilingual. No errors are thrown, the english version works as before with the freshly added <%= _('''') %> Still, no translations are performed. Setting I18nService.instance.lang = ''de''
2005 Dec 19
6
how to do security??
hey, i have maded some security in my website based on http://www.chaconforcongress.com/accounts/login Here they work with users, roles and persmission, and they check it like this, user.has_permission(permission). I have extended this to: users and groups with roles and permissions. With permissions like "view records","edit records","delete records",... def
2006 Feb 10
1
Bizarre ActiveRecord::Errors/validation problem
I could be going mad and missing something really obvious here but I''m getting an unexpected result from the following. The schema: create_table :services, :force => true do |t| t.column :id, :primary_key t.column :name, :string, :ilmit => 5, :null => false t.column :port, :integer, :null => false t.column :status, :string end The model: class Service <
2008 May 06
1
Problem with ActionWebService and UTF-8 encoding
Hello, I have a Rails App which serve a Soap Web Service with ActionWebService. I accept 2 string parameters that must contain xml. The data sent are in UTF-8, but the non-ascii char (é, à ...) in the message are crippled at the end. I tested the app, database, html, ... all accept utf-8, a direct http post works well, but going through the web service broke the content. I tried to manually set
2011 Sep 14
1
Hitting 500 status code on invalid UTF-8 byte sequence in params
Hello Core, Background: with Redmine-1.2 on Rails-2.3.11 we''re experiencing a "500 Internal Server Error" every time a mail with invalid UTF-8 byte sequence is hitting the MailHandler (the exception comes from the DB complaining about invalid string in the INSERT statement.) Since we do care about internal errors we''ve installed exception_notification plugin and this
2005 Dec 15
2
Error: [Object]Controller: missing default helper path [controller]_helper
Hello, I seem to have run into a problem that I can''t seem to make any headway on. I''ve searched the mailing archives, google''d for the appropriate keywords and have checked up with the folks on IRC but I can''t seem to find a solution. My problem is as such. I have a web application that has various controllers which work fine. I''ve added a
2005 Dec 21
2
what is print_r in rails
hey, i know u have in php print_r or echo, so that the browser print the variable on top of page, no matter what what is this in rails?? put doesnt seem to work Thanks Nick
2007 Jul 07
0
[patch] trunk markaby fix
so i guess the parser changed or something.. -------------- next part -------------- Index: camping.rb =================================================================== --- camping.rb (revision 194) +++ camping.rb (working copy) @@ -7,7 +7,7 @@ c=self/c;c="//"+ at env.HTTP_HOST+c if c[/^\//];URI(c)end;def/p;p[/^\//]?@root+p : p end;def errors_for o;ul.errors{o.errors.each_full{|x|li
2008 Jan 08
0
Error in validation
I have the following model =========================== class SoftwareCi < ActiveRecord::Base has_one :ci, :as => :content has_one :primary_group validates_presence_of :name, :message => "can''t be empty" end The controller ================ def create @software_ci= SoftwareCi.new(params[:ci]) redirect_to :action => ''create_ui'' end The
2005 Dec 15
3
How to delete a record
hey, i my database i have users and groups, each user can get in different groups my db structure: table groups: id, name, basegroup, firm_id table users: id, firstname, lastname, email table groups_users: group_id, user_id my relation is a many to many: class Group < ActiveRecord::Base has_and_belongs_to_many :users end class User < ActiveRecord::Base has_and_belongs_to_many