Note that there are some explanatory texts on larger screens.

plurals
  1. POWP7 Json serializer doesn't handle "space"?
    text
    copied!<p>I recently <a href="https://stackoverflow.com/questions/8002922/parse-google-calculator-with-json-in-windows-phone-7-c">made a post here</a> (which is now marked as "answered" - which it is) about parsing Google Calc json strings into WP7 <a href="http://www.google.com/ig/calculator?hl=en&amp;q=100GBP=?SEK" rel="nofollow noreferrer">http://www.google.com/ig/calculator?hl=en&amp;q=100GBP=?SEK</a>.</p> <p>It's working great - unless Google returns a number above 999. A number above 999 is writenn <strong>1 000</strong>, instead of <strong>1000</strong>. It seems like the "space" makes the application crash/try-catch aware that there's something wrong.</p> <p>I just wonder how I can make the json serializer (using System.Runtime.Serialization.Json;) (using StringBuilder) return sum/amount(s) above 999, without crashing?</p> <p>Thanks :)</p> <p>CODE:</p> <p>Hello! I'm mainly using the code found here: <a href="https://stackoverflow.com/questions/8002922/parse-google-calculator-with-json-in-windows-phone-7-c">Parse Google Calculator with Json in Windows Phone 7 / C#?</a></p> <p>In order to get currency landcodes from listbox, I use:</p> <pre><code> ListBoxItem toExchangeSelected= toCurrencyList.ItemContainerGenerator.ContainerFromItem(this.toCurrencyListtaListe.SelectedItem) as ListBoxItem; string toCurrency = toCurrencyList.Content.ToString(); ListBoxItem fromExchangeSelected= fromCurrencyList.ItemContainerGenerator.ContainerFromItem(this.fromCurrencyList.SelectedItem) as ListBoxItem; string fromCurrency = fromExchangeSelected.Content.ToString(); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload