Skip to content

Commit 8ce954f

Browse files
committed
Adding utf-8 as the byte encoding
1 parent 9fe82df commit 8ce954f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cuda_bindings/cuda/bindings/_internal

cuda_bindings/cuda/bindings/_internal/utils.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ cdef int get_nested_resource_ptr(nested_resource[ResT] &in_out_ptr, object obj,
122122
if ResT is char:
123123
obj_i_type = type(obj_i)
124124
if obj_i_type is str:
125-
obj_i_bytes = obj_i.encode()
125+
obj_i_bytes = obj_i.encode("utf-8")
126126
elif obj_i_type is bytes:
127127
obj_i_bytes = obj_i
128128
else:

0 commit comments

Comments
 (0)