Changeset 7720
- Timestamp:
- Jun 3, 2019, 11:36:49 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.15-stable/src/clients/web/net/sf/basedb/clients/web/util/HTML.java
r7710 r7720 23 23 package net.sf.basedb.clients.web.util; 24 24 25 import java.io.UnsupportedEncodingException; 25 26 import java.net.URLEncoder; 26 import java.nio.charset.StandardCharsets;27 27 import java.util.regex.*; 28 28 … … 348 348 { 349 349 if (in == null) return ""; 350 return URLEncoder.encode(in, StandardCharsets.UTF_8); 350 try 351 { 352 in = URLEncoder.encode(in, "UTF-8"); 353 } 354 catch (UnsupportedEncodingException ex) 355 {} 356 return in; 351 357 } 352 358
Note: See TracChangeset
for help on using the changeset viewer.