You must be calling toString() somewhere, which puts that extra formatting around it. Text.getValue() always returns the plain String.
Jeff On Sat, Apr 16, 2011 at 7:41 AM, Thomas Riley <[email protected]> wrote: > Hello all, > In my app engine project I have been storing values in the datastore as Text > (com.google.appengine.api.datastore.Text) instead of String as I expect the > value may be greater than 500 sometimes. > It all works great bar one problem. > When extracting the Text value and converting it to a Sting it seems to > store the underlying value inside some form of HTML-like 'tag'. > For example: storing 'testing' in the Datastore as Text returns '<Text: > testing\n\n> when converting it to string using Text.getValue(); > Does anyone have any ideas how to solve this without having to actually > parse the string and extract the value? > Sample code below shows how I convert from Text to String: > Text command = new Text("testing"); > String commandString = command.getValue(); > > > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
