Here you can find the source of encodeToFlex(Object o)
public static String encodeToFlex(Object o) throws UnsupportedEncodingException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.io.UnsupportedEncodingException; public class Main { public static String encodeToFlex(Object o) throws UnsupportedEncodingException { String url = java.net.URLEncoder.encode((String) o, "utf-8"); url = url.replaceAll("\\+", "%20"); return url; }// www .j a v a 2 s. c o m }