A few problems ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HugoFromBOSS
    New Member
    • Sep 2007
    • 38

    A few problems ...

    Hello,

    I have writen a client server application, when I send a request to the server from the client I get an output that looks like this "ÿûÿû ÿûÿû'ÿýÿûÿýt est" clearly this is odd. How do I remove the misc characters?

    Secondly I have the following java code.

    Code:
    String test = "asdasdada {svr_id}";
    
    test.replace("\\{svr_id\\}", "replace");
    System.out.println(test);
    Thanks.
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    Rather than removing odd characters, perhaps you should figure out the problem.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      In your code snippet, realize that test is never changed. To change it, you need to do
      Code:
      test = test.replace(...

      Comment

      Working...