similar to: Utility to translate HTML character entities into text?

Displaying 20 results from an estimated 1000 matches similar to: "Utility to translate HTML character entities into text?"

2006 Aug 15
4
escaping html?
Hi I have a wysiwyg html ditor in my app. How do I escape html written to the database and encoding when I display the content> Ty Pieter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/d8c50941/attachment.html
2005 Dec 30
4
Convert "é" in "é"
I try to find an function to convert characters in html chars. "é" become "é" There is something in RoR 1.0 to do that ?
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers, For some time now I''ve been looking for a decent Rails equivalent of PHP''s "htmlentities" command, because ERB''s html_escape (or more commonly called as just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me. Back in PHP land, I actually had an extended version of the htmlentities command to deal with
2007 Mar 20
6
bad URI problem when submitting a form
Hi all, I''ve a problem when submitting a form : the URL seems to be invalid. I really don''t see the way I should try to solve that problem. I searched on the web, but didn''t found any kind of that problem. Here is the code : require ''mechanize'' agent = WWW::Mechanize.new page =
2006 Aug 07
3
character encoding in RoR
Hi, I''m a newcomer to Ruby and to Rails, and am having a problem with character encoding. Now, I know ruby doesn''t handle unicode...but, characters like ? (eacute) and ? (ccedil) are part of the iso-8859-1 charset, so it shouldn''t be a problem, right? But, for some reason, the string functions still seem to hang on those characters. As an example, in a brand new rails
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 (''?''
1999 Oct 20
1
File names and e-acute char
Hi. Samba 1.9.15p8 under IRIX 6.1 (yes I know, it's old stuff ...) The susers on Windows 9x/WindowsNT just put their strange file name or directory name (like /usr/people/mesure_?t? ) on the IRIX. However, from the IRIX side, it's impossible toaccess to such files/directory. What's more, my ARkeia backup client stalls on such a name and fouled up my backup database... NB: Oops: for
2008 Jun 27
2
5.1 -> 5.2 Upgrade oddity
yum upgrade -y yada yada yada .... then lots of errors like: /usr/share/gnome/help/gdm/fr/gdm.xml:173: parser error : Entity 'eacute' not defined and so on until Document is not well-formed XML: /usr/share/gnome/help/gdm/it/gdm.xml Updating : amtu ##################### [173/520] Updating : grub ##################### [174/520] ...
2006 Jun 27
2
special characters in db
This is my first message in this list, so hi everybody!!! (by the way, sorry for my english) I am developing a spanish applications, so some data has special characters (?, ?, ?, etc...) in database.... The problem is that those caracters display incorrectly in browser, how can I handle that situation with RoR??? Does it exist a "parser" that convert those characters in their
2007 Dec 11
1
unescapeHTML return incorrect string under firefox
function testUnescapeHTML() { var testString = "<div>&lt;a hrer="#"&gt;test&lt;/a&gt;</div>" } this simple test function return string "<div><a href="#">test</a></ div>" under internet explorer,and return "<a herf="#">test</a>" under firefox(strip <div> pair), how can
2009 Jun 10
5
uninitialized constant ActiveSupport::Cache (NameError)
Hi After having updated some GEMS I get `load_missing_constant'': uninitialized constant ActiveSupport::Cache (NameError) on starting the server of a freshly generated rails project. Before, I already had Rails 2.3.2 projects succesfully running, now all of them generate this error. These are my GEMS: actionmailer (2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0) actionpack (2.3.2, 2.2.2, 2.1.2,
2005 Jul 08
8
Integrating script.aculo.us into existing javascript codebase
Hi, I''m new to this mailing list, so first off, a big THANK YOU for the script.aculo.us and prototype.js libraries. I''m trying to integrate script.aculo.us into an existing pretty large Javascript codebase (see http://openrecord.org). I''m running into a problem with prototype.js and the existing codebase''s use of for/in loops over an Array.
2005 Sep 30
1
Ampersand in Auto Complete Entry Broken
Hi, I have been playing around with the autocomplete field in Rails 0.13. I have noticed that if I have an ampersand in the value such as "A&E", if I click on the entry in the autocomplete list, I am left with just A in the text box. I have narrowed it down to: String.unescapeHtml() in prototype.js as what strips the & and what follows it from the value. It strips it
2011 Nov 27
2
problem scraping using nokogiri - getting wrong characters
Hi all, I am scraping a table off of another site and inserting it onto my site. you can see an example on the initial page at: http://mthosts.heroku.com. I''m referring to the green box with the snowbird weather and snowfall information. this box has been scraped off of the snowbird site at: http://www.snowbird.com/ski_board/snowreport.php The problem is that on the snowbird site it
2006 Nov 13
1
php5 in centosplus update?
The recent htmlentities/htmlspecialchars bug was affecting all versions of PHP older than 5.2.0. With that in mind, I was just wondering if there is any timeframe to release a fix in centosplus repository for PHP5 package? I've noticed that Red Hat released fixed PHP5 packages for RHEL4 last week (php-5.1.4-1.el4s1.5). -- NOTICE: If you are not intended recipient, you are hereby
2009 Jan 28
6
Creating an object from a pp string?
When I use pp on an object in rails, it prints out a nice string representation of the object. I am trying to pass objects from one server to another and I am wondering if I can just pass this string and create an object on the other server. Any libraries/functions out there that can do this? Or any other way to do this (not necessarily using pp). Thanks! -- Posted via
2010 Mar 18
3
Sending mail using action mailer
Hi everyone, I am new to ruby and i just wanna send an email using ruby action mailer. i have been trying it for about a day. Not achieved. so many replies came in from google but many were beating the bushes .. can any one send me a correct procedure.. regards ds -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups
2004 Jan 21
2
unicode conversion
Hi, We have windows XP and NT workstations. They are configured to support french language. Also we export samba 2.2.8 shares through a solaris 8 machine. But these samba shares are NFS mounted file systems that come from a NAS (Celerra's EMC) In smb.conf: - Character set parameter is not set. - Codepage is 850 In the NAS file server the parameter is set to unicode. In windows
2012 Oct 20
5
Is it possible to store the log file by day?
I hope to store the log file by day , because the log file will be so large with the time goes by.Is it possible to do this ? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2013 May 07
2
Net::HTTP
I''m looking at the documentation: http://ruby-doc.org/stdlib-2.0/libdoc/net/http/rdoc/Net/HTTP.html And I notice two uses of Net::HTTP. Both are using GET requests. But what''s the difference? When to use which? Net::HTTP.start(uri.host, uri.port) do |http| request = Net::HTTP::Get.new uri response = http.request request # Net::HTTPResponse object end uri =