From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) by mx.groups.io with SMTP id smtpd.web10.8628.1654581737258741460 for ; Mon, 06 Jun 2022 23:02:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Dj0Y2QMc; spf=pass (domain: gmail.com, ip: 209.85.166.176, mailfrom: ayushdevel1325@gmail.com) Received: by mail-il1-f176.google.com with SMTP id d6so2707196ilm.4 for ; Mon, 06 Jun 2022 23:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=YrxztN+nXNrk9h723FjeW+V5jk0zS6bWKgl66khgK7Q=; b=Dj0Y2QMcylNlC2Ti/VXc1mRiqDS6qJSdeKXAt+PCzVikRRFAoQ336Pad56DyqEV6KX BsMOnggkQfYYIKNbfuo99yzIkBRdcqw1m9Lg7TgW42ckJJ1t7tYCZE0B2wgm8dOBFP7h dwLBZQBpB9Gn3HsTcGtGSXCg/IL4hSbUYpb/n5HkAYD55zkUrgEG1Gm7LJ59V/QNNVDQ oDMtCDbhlWvVMqIFKT0zzAAPsUhYZfvuLg0AbVUsDKFAxpuGEyCxSW77PO2Wo8DTAHa9 j8DP+jHBC4wtk5WUd4P6yoK1LkHgtDLweRjHZjF0/q6V9KoS/M8TSe4sFnBhjDCCOuoy kH9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YrxztN+nXNrk9h723FjeW+V5jk0zS6bWKgl66khgK7Q=; b=cXn1elHOZl9y4wgFJcl3eY3pbAnWPxIDH8y0v+RiwrlPu60jlW2OwNxEE+tm8JgEul 1oohbBserYWpbDHzLI4pf4lpBS4kMXEl00Wo7jXWG4I7EvM0zEPKEoeRsCpprnNwHvC6 yKZMxZpnhnYBndQTDjR3Yv90zMN2TR29vHDlI6z7v0eZGrxVdKgoK41JfpCNKKNJcIZU JAJ9yOcRXuab/V/0ELIYhxsVEUaMgBW4qAhOZgCKB7sBNdbOrwXXfluA0J4RSOnY2eaX 8oScHoSs16LVPtFzCoe9cxuPIsiqexUzXi450eWdPTkMIZ2FEHcfsDYoMb0hKJ3QM2cj HFoQ== X-Gm-Message-State: AOAM532VZCEDwcT+4OdW6qYRFgJa+9kzzr7FwT8E5RdD1KoUAwCGqlgc PMkIKAtM+BP45237yu6c9ENhGMfRTUOYu3UwszEsqsC+yf0l3g== X-Google-Smtp-Source: ABdhPJzRJcR2zXLOstL2Jl5eC1I/WGRt241B9T47HHG8312mzUhO1/knBPz/lZEPtOo0u221B6cFzSVRbPAOG8KDa+0= X-Received: by 2002:a92:dc42:0:b0:2d5:4875:1c6f with SMTP id x2-20020a92dc42000000b002d548751c6fmr3062521ilq.65.1654581736442; Mon, 06 Jun 2022 23:02:16 -0700 (PDT) MIME-Version: 1.0 From: "Ayush Singh" Date: Tue, 7 Jun 2022 11:32:05 +0530 Message-ID: Subject: Need clarification about UEFI Strings To: edk2-devel-groups-io Content-Type: text/plain; charset="UTF-8" Hello everyone, I am trying to write an implementation for UEFI strings in Rust and just wanted clarification about some things. Are UEFI Strings UTF-16 encoded? I have looked at some previous Rust implementations for this and it seems UEFI does not support the whole UTF-16 but rather only UCS-2 (https://en.wikipedia.org/wiki/Universal_Coded_Character_Set) which is a subset of UTF-16. There is also something called WTF-8 (https://en.wikipedia.org/wiki/UTF-8#WTF-8) which Rust uses to represent OsStrings in Windows which is supposed to use UTF-16 (?). Anyway, if someone can point me to the resources/specifications of UEFI Strings, it would be a great help. Ayush Singh