Skip to content

Instantly share code, notes, and snippets.

@hugithordarson
Last active January 13, 2022 20:47
Show Gist options
  • Save hugithordarson/39d9b14fd0b9d3412f76b05886e7a3ae to your computer and use it in GitHub Desktop.
Save hugithordarson/39d9b14fd0b9d3412f76b05886e7a3ae to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Entry</title>
</head>
<body>
<wo:form>
<wo:textfield value="$inputStringFromTextField" /> <wo:submit action="$submit" />
</wo:form>
</body>
</html>
package x;
import com.webobjects.appserver.WOActionResults;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;
public class CyrillicTestComponent extends WOComponent {
public String inputStringFromTextField;
public CyrillicTestComponent( WOContext context ) {
super( context );
}
public WOActionResults submit() {
System.out.println( inputStringFromTextField );
System.out.println( "---------" );
for( char c : inputStringFromTextField.toCharArray() ) {
System.out.println( c + " : " + Character.getName( c ) );
}
System.out.println( "---------" );
inputStringFromTextField.codePoints().forEach( System.out::println );
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment