Skip to content

FormatException: Invalid value in input: \"➢\" / (10146) at index 1204 #16

@insinfo

Description

@insinfo

i am getting this error when copying and pasting text from word into an editable div and trying to write to the database by encoding the data with the enough_convert win1252 codec

it seems the codec doesn't know how to deal with the "➢" character

image
image
image

FormatException: Invalid value in input: \"➢\" / (10146) at index 1204 of \""

#0      BaseEncoder.convert (package:enough_convert/src/base.dart:166:13)
#1      Codec.encode (dart:convert/codec.dart:21:32)
#2      new ParameterValue.text (package:postgres_fork/src/query.dart:313:20)
#3      new ParameterValue (package:postgres_fork/src/query.dart:296:29)
#4      Query._formatSql.<anonymous closure> (package:postgres_fork/src/query.dart:119:20)
#5      Query._prepareSubstitutionValues (package:postgres_fork/src/query.dart:83:13)
#6      Query._formatSql (package:postgres_fork/src/query.dart:115:9)
#7      Query.sendExtended (package:postgres_fork/src/query.dart:149:23)
#8      _PostgreSQLConnectionStateReadyInTransaction.processQuery (package:postgres_fork/src/connection_fsm.dart:376:9)
#9      _PostgreSQLConnectionStateReadyInTransaction.awake (package:postgres_fork/src/connection_fsm.dart:362:14)
#10     _PostgreSQLConnectionStateReadyInTransaction.onEnter (package:postgres_fork/src/connection_fsm.dart:355:12)
#11     PostgreSQLConnection._transitionToState (package:postgres_fork/src/connection.dart:302:41)
#12     PostgreSQLConnection._readData (package:postgres_fork/src/connection.dart:337:11)
#13     _rootRunUnary (dart:async/zone.dart:1399:47)
#14     _CustomZone.runUnary (dart:async/zone.dart:1300:19)
#15     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1209:7)
#16     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#17     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#18     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#19     _StreamController._add (dart:async/stream_controller.dart:648:7)
#20     _StreamController.add (dart:async/stream_controller.dart:596:5)
#21     _Socket._onData (dart:io-patch/socket_patch.dart:2324:41)
#22     _rootRunUnary (dart:async/zone.dart:1407:13)
#23     _CustomZone.runUnary (dart:async/zone.dart:1300:19)
#24     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1209:7)
#25     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#26     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#27     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:774:19)
#28     _StreamController._add (dart:async/stream_controller.dart:648:7)
#29     _StreamController.add (dart:async/stream_controller.dart:596:5)
#30     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1849:33)
#31     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1322:14)
#32     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#33     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#34     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:122:13)
#35     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:193:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions