similar to: Re: REXML UTF-16 trouble

Displaying 20 results from an estimated 80000 matches similar to: "Re: REXML UTF-16 trouble"

2010 Aug 05
7
Search large XML file -- REXML slower than a slug, regex instantaneous
Got a question hopefully someone can answer - I am working on functionality to match on certain nodes of a largish (65mb) xml file. I implemented this with REXML and was 2 minutes and counting before I killed the process. After this, I just opened the console and loaded the file into a string and did a regex search for my data -- the result was almost instantaneous. The question is, if I can get
2010 Jan 22
0
REXML::ParseException: Missing end tag for 'META' (got "HEAD
Hi, I am using flickr_fu gem. When I try to get photos with following flickr = Flickr.new(File.join(RAILS_ROOT, ''config'', ''flickr.yml'')) flickr.photos.search(:user_id => user_id) it gives me error like "REXML::ParseException: Missing end tag for ''META'' (got "HEAD")" I have checked the presence of flickr.yml file &
2010 Mar 26
2
How to read a xml file?
How to read a xml file? I have this XML source: ------------------------------------------------------- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fichas> <ficha> <nombre>Gabriel</nombre> <apellido>Molina</apellido> <direccion>Alfredo Vargas #36</direccion> </ficha>
2006 Feb 01
4
REXML::ParseException - but the feed IS valid
I am using Ruby feedparser and when I try to parse this feed: http://feeds.feedburner.com/Mobilecrunch I get an error: REXML::ParseException: Declarations can only occur in the doctype declaration. This feed does validate at feedvalidator.org. Any idea why it would raise an exception? Thanks, eduard -------------- next part -------------- An HTML attachment was scrubbed... URL:
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
2012 Sep 10
4
Rails error: invalid byte sequence in UTF-8
Hello, i have a app on rails 3.2.1 and i use a jquery lib called jQuery Timelinr 0.9.5: http://www.csslab.cl/2011/08/18/jquery-timelinr/ but, when i use it on a .erb view, i got a error: Showing * /home/carlos.ribeiro/projetos/amarribo/app/views/conheca/historico.html.erb* where line *#59* raised: invalid byte sequence in UTF-8 Extracted source (around line *#59*): 57: 58: <%=
2010 Aug 31
0
UTF-8 to ASCII Conversion
UTF-8 to ASCII Conversion does anybody knows how to convert from UTF-8 to ASCII. the problem is that,the DB supports UTF-8 in one server, which can display Special characters when PRAWN generates the PDF... when the same code is migrated to another server which supports ASCII- database, its not working. so is there any method or code that tells the server to convert or process in the same UTF-8
2010 Dec 14
9
UTF-8 String.strip bug (and several over methods)
Hello, with Rails 3.0.3 "Café Noir ".strip => "Café noir" but "Café ".strip => "Caf\303\251" In fact, strip() doesn''t works if the last printable character is accentuated. Surprisingly " écologie".strip works fine. I''ve tried to dig deeper in active_support multibyte source code but didn''t found any solution.
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
2009 Dec 16
0
mysql character set = UTF-8 on a cloumn in a migration
Hi, I want to change a single table field to UTF-8, but cant see a way of defining this in a migration. Does anyone know if there is a way, or if it has to be an sql snippet, how would I add that? Thanks Tony -- 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
2006 Mar 24
4
Parsing Filemaker 6 XML into something I can use
Hi One of our customers has a Filemaker database which needs to be accessed for some data. Using the Web Companion, I can query the database for an XML version of the data. I need to be able to push this data into an array of hashes, so I can access it in a more convenient way. Filemaker is able to provide me with 2 XML formats (DSO-XML and FMP-XML): *********** DSO-XML ***********
2011 Dec 15
1
problem with starting mongrel gem
Hi, I have installed mongrel gem and when i tried to start mongrel_rails start its causing me following problem mongrel_rails start ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Requiring REXML /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/ active_support/dependencies.rb:239:in `require'': no such file to load --
2007 Jun 07
1
Undefined method `register'' for REXML::Encoding:Module
Has anyone seen the below error before? It appears to only occur when Puppet runs automatically (i.e. a "puppetd --test" doesn''t cause it). I have recently installed new Ruby rpms on the server and I''m guessing that I may have left out something when I built the RPMS (based on FC7 SRPM). > -----Original Message----- > From: report@melrhweb1.nmh-au
2011 Jul 14
1
rails 3.0.9 ArgumentError (redundant UTF-8 sequence):
Hi guys, I have a simple controller def gmap @intentsearches = Intentsearch.all logger.info @intentsearches respond_to do |format| format.html {render :gmap} format.xml {render :xml => @intentsearches } format.json { render :json => @intentsearches } end end and want a json response, but i do get the following error Completed 500 Internal
2011 May 25
1
trouble using jQuery in Rails 3.0.7
I''ve tried to install JQuery a couple of times now, and I''ve followed the steps for Rails UJS mentioned here: https://github.com/rails/jquery-ujs The last time I went ahead and added jQuery UI as well: $ rails generate jquery:install --ui remove public/javascripts/prototype.js remove public/javascripts/effects.js remove public/javascripts/dragdrop.js
2011 Apr 14
4
wrong time in application
hey guys, i''ve got a problem and i really don''t know how to solve it. when i''m creating a new dataset in my application, the created_at and updated_at time will be saved in UTF Time (+000). in my environment.rb i set the following line: config.time_zone = ''Berlin'' when i''m using the console (script/console) for reading out some example
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
This is not a question but a report on the difficulties I had and the solution I found with respect to UTF-8, YAML::load, and Ruby/Rails. Comments are appreciated. - - - I had been struggling for two days to get UTF-8 working in my Rails app. I had/have a localization file, lib\locale\de.yml, that had iso-8859-1 encoding. I could not get that to display properly. Marnen, quite correctly,
2013 Aug 27
2
trying to create asset management app having trouble with edit page
i trying to create an asset management app. i am working through the ruby on rails 4.0 guide by Michael Hartl but in his guide it shows edit page for authenticated users i do not needthis function as the app will be deployed to an intranet. i have tried to adapt the edit portion in the above mentioned guide but it is not working. i am a newbie to this so any help with websites to look at or other
2006 Jan 25
0
screenscraping using htmltools and rexml
Hi, I need to do some screen scraping and I''ve spent a couple hour getting htmltools and rexml do the right thing. Here''s the code: parser = HTMLTree::Parser.new(false, false) parser.feed(res.body) tree = parser.tree.html_node.as_rexml_document I works for one page, but for another I get "undefined method `add'' for #<HTMLTree::Element:0x37f9cc8>" in
2010 Oct 31
0
Loading xml document using Nokogiri and retrieving CDATA element
This is an extension of my last post (problems with REXML) which has me looking to Nokogiri again. The reason I am not using Nokogiri is I can not seem to find a way to get CDATA out of a Nokogiri document. First, can you tell me if I am loading my document correctly, because when I call my_document.to_xml, I only get one line back: (rdb:1) test_file = Nokogiri::XML(mismo_xml_file)