1918 Fungal Flambé pod_hot.gif c48b0a26daedd9d432f728c7c2d9c221 #use hot spore pod in combat
2091 Sacré Mental wine2.gif 8b5af0a2980a1144c725e3410b5e53e2 drink 1 Sacramento wine
2092 Sweetbreads Flambé potion4.gif b3f3d7e5c72a045fff556e01f287f42d use 1 Greek fire
You acquire an effect: <b>Sweetbreads Flambé</b><br>(duration: 25 Adventures)
[color=green]> ash to_effect( "Sacré Mental" ).to_string()[/color]
Returned: Sacré Mental
[color=green]> ash to_effect( "Sacré Mental" ).to_string()[/color]
Returned: Sacré Mental
[color=green]> ash to_effect( "Memento Moiré" ).to_string()[/color]
Returned: Memento Moiré
[color=green]> ash to_effect( "Memento Moiré" ).to_string()[/color]
Returned: Memento Moiré
effectId = EffectDatabase.getEffectId( name );
name = EffectDatabase.getEffectName( effectId );
return DataTypes.makeNormalizedEffect( effectId, name );
[color=green]> ash $effect[ sac men ].to_string()[/color]
Changing "sac men" to "Sacré Mental" would get rid of this message. ()
Returned: Sacré Mental
[color=green]> ash $effect[ mem moir ].to_string()[/color]
Changing "mem moir" to "Memento Moiré" would get rid of this message. ()
Returned: Memento Moiré
[color=green]> ash $effect[ memento moiré ].to_string().contains_text( "acute" )[/color]
[color=red]Typed constant $effect[memento moiré] contains non-ASCII characters ()[/color]
Returned: void
[color=green]> ash to_effect( "memento moiré" ).to_string().contains_text( "acute" )[/color]
Returned: true
this.istream = DataUtilities.getInputStream( scriptFile );
...
this.commandStream = new LineNumberReader( new InputStreamReader( this.istream, "UTF-8" ) );
[color=green]> ash $effect[ Sacré Mental ].to_string().contains_text( "acute" )[/color]
Returned: false
[color=green]> ash $effect[ Memento Moiré ].to_string().contains_text( "acute" )[/color]
Changing "Memento Moiré" to "Memento Moiré" would get rid of this message. ()
Returned: true
Revision 17680:
The previous discussion involved a script saved on Windows with a "tm" symbol in an item name, rather than a character entity - the Newbiesport™ tent, I believe - which did not parse successfully on OS X. I'm curious about whether that would parse successfully on Windows any more, since reading it in UTF-8 would result in an item name which I would expect to not match successfully.Code:[color=green]> ash $effect[ Sacré Mental ].to_string().contains_text( "acute" )[/color] Returned: false [color=green]> ash $effect[ Memento Moiré ].to_string().contains_text( "acute" )[/color] Changing "Memento Moiré" to "Memento Moiré" would get rid of this message. () Returned: true
> ash $effect[ Sacré Mental ].to_string().contains_text( "acute" )
Bad effect value: "Sacr� Mental" ()
Returned: void
> ash $effect[ Memento Moiré ].to_string().contains_text( "acute" )
Bad effect value: "Memento Moir�" ()
Returned: void
Try this, tell me what the version info says, and tell me how your gCLI command line works with the é character.Java uses the default encoding for your computer, which for Windows would be C16 and doesn't support unicode. Run your program with the following command in terminal:
Code:java -jar -Dfile.encoding=utf-8 <path to your .jar>
> ash $effect[ Sacré Mental ].to_string().contains_text( "acute" )
Returned: false
> ash $effect[ Memento Moiré ].to_string().contains_text( "acute" )
Changing "Memento Moiré" to "Memento Moiré" would get rid of this message. ()
Returned: true
private void submitCommand()
{
String command = CommandDisplayPanel.this.entryField.getText().trim();
CommandDisplayPanel.this.entryField.setText( "" );
CommandDisplayPanel.this.commandHistory.add( command );
CommandDisplayPanel.this.commandIndex = CommandDisplayPanel.this.commandHistory.size();
CommandDisplayFrame.executeCommand( command );
}
public static BufferedReader getReader( final InputStream istream )
{
return DataUtilities.getReader( istream, "UTF-8" );
}
Retrieved: https://www.kingdomofloathing.com/desc_item.php?whichitem=113038072
12 header fields
Field: Transfer-Encoding = [chunked]
Field: null = [HTTP/1.1 200 OK]
...
Field: Content-Type = [text/html; charset=UTF-8]
this.responseText = new String( ByteBufferUtilities.read( istream ), "UTF-8" );
this.commandStream = new LineNumberReader( new InputStreamReader( this.istream, "UTF-8" ) );
I can't say whether it is related or not.Mine says Cp1252, whatever that means. And, after updating, I get this in the login messages:
net.sourceforge.kolmafia.swingui.AdventureFrame could not be loaded
and I'm no longer able to use the adventure frame, at all. Is this related to this ? And, if so, (and keep in mind I barely understand what you guys are talking about), how do I fix it ?
int adding = Preferences.getInteger( "addingScrolls" );
if ( adding == -1 )
{
adding = Preferences.getBoolean( "createHackerSummons" ) ? 3 : 2;
Preferences.setInteger( "addingScrolls", adding );
}
this.addingSelect.setSelectedIndex( adding );
?? Don't think I've seen that before. Is that a non-public pref or something ?createHackerSummons
this.addingSelect = new JComboBox();
this.addingSelect.addItem( "show in browser" );
this.addingSelect.addItem( "create goal scrolls only" );
this.addingSelect.addItem( "create goal & 668 scrolls" );
this.addingSelect.addItem( "create goal, 31337, 668 scrolls" );