fixed umlauts using iconv-lite
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import jBox from "jbox";
|
||||
import { config } from "./config";
|
||||
import * as XMLHelper from "./xmlhelper";
|
||||
import Utils from "./utils";
|
||||
|
||||
export function showJBoxNotice(inContent: string, inAutoClose: number | boolean | undefined = 5000): void {
|
||||
new jBox<"Notice"> ('Notice', {
|
||||
@@ -37,7 +38,7 @@ function showSeatTooltip(jBox: any): void {
|
||||
const seat: string = config.state.layoutRows[seatID][5];
|
||||
const row: string = config.state.layoutRows[seatID][4];
|
||||
const sectionID: string = config.state.layoutRows[seatID][3];
|
||||
const sectionDesc: string | undefined = XMLHelper.getSectionDescBySectionID(sectionID);
|
||||
const sectionDesc: string | undefined = Utils.encodeCP850DecodeUTF8( XMLHelper.getSectionDescBySectionID(sectionID)! );
|
||||
const tooltipContent: string = `${sectionDesc}<br/>Reihe ${row} Platz ${seat}`;
|
||||
|
||||
jBox.setContent(tooltipContent);
|
||||
|
||||
Reference in New Issue
Block a user