Last active
January 13, 2022 20:47
-
-
Save hugithordarson/39d9b14fd0b9d3412f76b05886e7a3ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Entry</title> | |
</head> | |
<body> | |
<wo:form> | |
<wo:textfield value="$inputStringFromTextField" /> <wo:submit action="$submit" /> | |
</wo:form> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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