Hi All,
I need to decode an sting using base64 , so I decoded using the following
steps
>> ActiveSupport::Base64.decode64("534b38baeee35c35")
=> "�~ ���y���\315\371"
While displaying it in browser as XML , I am facing the XML parsing error,
my output is below
XML Parsing Error: not well-formed
Location: http://localhost:3000/api/applications
Line Number 2, Column 1032:
<applications><application><id>01478</id><name>testapp3</name><version>2.0</version><application-identifier>wac-w444ert9-tyts-fr4w-c34r-a95r9b8eb059</application-identifier><title>title-text</title><description>This
is test description
</description><type>web</type><developer-name>testuser</developer-name><status>ACTIVE</status><product-items><product-item><name>product_item1</name><product-identifier>wac-1fbf3e6-e840-4daa-824e-62d8ed83723e</product-identifier><pricepoints><pricepoint
id="1" name="test-price" currency="dollar"
locale="la" price="50" text="this
is a test" receipt="oi120934" operator-name="telenor"
mcc="001"
mnc="256"></pricepoint></pricepoints></product-item></product-items><application-apis><application-api
name="PAYMENT"
status="ENABLED"></application-api></application-apis><application-operators><application-operator
mcc="001" mnc="124"
status="ENABLED"></application-operator></application-operators><credentials><credential
environment="PRODUCTION"
key="wac-1faf2e6e4404daa824e62ded837231"
secret= "�~ ���y���\315\371" status="ENABLED"
api-key-id="923482340982345"
redirect-uri="http://test.com
"></credential></credentials></application></applications>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
I hope this is due to char encoding, can any one help ASAP, and I have
another doubt
What is the difference between "base64 and base64binary"
regards,
Loganathan
--
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
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.