Displaying 20 results from an estimated 8000 matches similar to: "Problem saving data in different languages"
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 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 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 Jun 25
7
Unicode HOWTO?
I am disappointed about the (seeming) lack of Unicode support in Rails.
Is there a howto about working the most important limitations? For
example, figuring out the length of an entered word: "???".length() will
return 6, not 3. So if there is a maximum number of characters a user is
allowed to enter, this won''t work as it should -- it treats strings as
byte arrays instead
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/.
2017 Jun 05
2
months not working with local language (weekdays does)
For what it's worth, I tried setting my Region | Formats setting to
Spanish (Peru) in Windows 10 Control Panel, and got Spanish weekday and
month results.
I believe on Windows we use the Microsoft C strftime function to produce
these strings, with the %A (for weekday) or %B (for month) formats. So
this question probably needs to be addressed to Microsoft.
Duncan Murdoch
On 05/06/2017
2017 Jun 05
2
months not working with local language (weekdays does)
Hi,
I want to reporte some strange behaviour with the "months" function, from
base R.
When using "months" to extract months from a date column, I'm getting the
months in english, when I was expecting months in spanish.
When using "weekdays" to extract days of week from a date column, I'm
getting the the days in spanish (as expected).
My understanding is
2005 Nov 02
4
Trouble with Umlauts
I am developing an application in German. This means I have umlauts. When I
was using rails version 0.13.1 there seemed to be no further configuration
needed for umlauts to be shown correctly. Now I have upgraded to 0.14.2 and
the umlauts are being displayed at ''?''s. I changed the encoding of the page
and it is UTF-8. I have also tried the steps listed at
2004 Apr 28
5
Asterisk goes international :-)
During the recent week, we've worked hard to add more of the contributed international
support to Asterisk. A big step was taken yesterday when Mark added international support
for saynumber() to CVS. We now have a first version of support for
* Danish
* German
* English
* Swedish
* Norwegian
* Portuguese
* Italian
* French
All of these require that you add your own sound files. There are
2017 Jun 05
0
months not working with local language (weekdays does)
Hello,
This doesn't answer the question, but in portuguese it works as expected.
> x <- as.Date("2017-06-05")
> months(x)
[1] "junho"
> weekdays(x)
[1] "segunda-feira"
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
2017 Jun 05
0
months not working with local language (weekdays does)
Thank you Duncan and Rui for your time and interest in this issue.
Maybe it is a problem with Windows 7 and Spanish, and not Windows 10.
Let's wait for someone with the same enviroment, before assuming it's a
problem with my PC/configuration.
2017-06-05 14:37 GMT-05:00 Duncan Murdoch <murdoch.duncan at gmail.com>:
> For what it's worth, I tried setting my Region
2009 Apr 03
2
New ViciDial Call Center Suite Release: 2.0.5
Hello,
We've released another update to our VICIDIAL/astGUIclient call center
suite: 2.0.5
http://astguiclient.sf.net/
The call center suite client applications run on most modern web
browsers on almost any GUI-capable operating system, and it includes
the VICIDIAL call center suite.
This package is free and AGPLv2.
This package is geared towards Asterisk installations with SIP,IAX or
Zap
2009 May 06
4
Portal for br.centos.org or pt_br.centos.org
Hi, my name is Thiago Avelino, I'm Brazilian, talks in Brazil on
CentOS (RedHat), part of porjeto LXDE (Development).
First I want to know when we have the CentOS website of Brazil, and I
actively helping put this content on the portal, the portal can be
CentOS BR bringing more public Brazilian (Spanish) to use and help the
CentOS. Today I have a mirror of CentOS in Brazil
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"] =
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 (''?''
2006 Aug 14
2
ActionPack: number_to_phone error
Question about the number_to_phone function as provided by rails in actionpack:
http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html
If I do this in my controller:
num = number_to_phone(params[:phone_number])
I get this error:
undefined method `number_to_phone'' for #<TicketsController:0xb7a2bfcc>
Whereas if I do this in my view:
<%
2006 May 11
3
Setting cookie value in test
In the initial version of my application I am just going to require
cookies - down the road _considering_ changing that and providing
something that works without.
Anyway, this is somewhat of a two part question
1. Does this approach make sense or is there a better way typically used?
Just have a before_filter in my application.rb to verify that the
:_session_id cookie is present. If it