Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

kyrillische Schriftzeichen...???

Empfohlene Antworten

Veröffentlicht

... erstmal der Code...

public class CharToByteRussian extends sun.io.CharToByte8859_1

{

public boolean canConvert( char ch)

{

return 0x0021 <= ch && ch <= 0x007E || 0x0401 <= ch

&& ch <= 0x45F;

}

public int convert( char[] input, int inStart, int

inPastEnd, byte[] output, int outStart, int outPastEnd)

throws ConversionBufferFullException;

{

int outIndex = outStart;

for( int i = inStart; i < inPastEnd; i++)

{

char ch = input;

byte b = 0;

if( 0x0021 <= ch && ch <= 0x007E)

b = ( byte)ch;

if( 0x0401 <= ch && ch <= 0x45F)

b = ( byte)(ch - 0x0360);

if( b != 0)

{

if( outIndex >= outPastEnd)

throw new ConversionBufferFullException();

output[outIndex] = b;

outIndex++;

}

}

return outIndex - outStart;

}

}

Dann noch folgende Zeilen ins font.properties:

russian.0=RUSSIAN, SYMBOL_CHARSET, NEED_CONVERTED

fontcharset.russian.0=CharToByteRussian

und dann sollte es funktionieren, macht es aber nicht :eek:

Wo ist denn mein Fehler, wer kann helfen??? :(:(:(

Evtl. liegt es am Charset. Iso 8859_1 kennt nämlich keine Kyrillischen Zeichen

schau mal hier nach: http://www.eki.ee/letter/

Gruß

HArdcoder

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.