medz / prisma-dart

Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
https://prisma.pub
BSD 3-Clause "New" or "Revised" License
452 stars 30 forks source link

Prisma encoding issue. #240

Closed samerkh closed 8 months ago

samerkh commented 1 year ago

i just created a fresh flutter app and installed prisma using the steps in getting started i added a single model and added a single row as described, when i explore the database using prisma studio it shows correctly, but when i print the model info to console, its mis-encoded.

final vehicleType = await prisma.vehicleType.findFirst(
        where: const VehicleTypeWhereInput(
            description: StringFilter(equals: 'خصوصي')));
    print(vehicleType?.description);

this is how the output looks flutter: خصوصي im using sqlite and the language im using is arabic, and running flutter on a windows desktop app.