I am getting an error when trying to open my VS2015 project:

Some bytes have been replaced with the Unicode substitution character while loading file ... with Unicode (UTF-8)

This seems to be related to one VB file in the project which now displays as a section of normal code followed by gobbledegook further down the file.

Here is the part of the file at which this happens:

timeString = CType(worksheet.Cells(EndTimeCell(0), EndTimeCell(1) + col).Value, String)
endtimeValue = DateTime.FromOADate(timeString).TimeOfDay

'Combine Date And time into a single DateTime
combinedStartDateTime = startdateValue.Add(starttim4F�r2��+�G��� ,j���
|2�$�{,���ܴ���0j.2-���8h�\���WI޳J�/���Rs�S�0��Dg,[6+O�����=Z��?����.ZmF%��`B�s��n�21Q���)0s3�*���W�q��^�h��6    H$��+�!�֏��Z�7�b    �xȯ�E3z>�a��    Ê���7�ʼn=�|Ă턨׫���udx��6JT��j�����z�.��X�{>��_�1�?&.ͥ7*���M7N�mrN�XVw�+�e>Ms�=7e)�
ݚ�m�?�(o 

This continues to the end of the file.

Is there any way of resolving this and getting the VB back? It worked ok last week, so no idea what has caused this, unless it is some kind of Windows update that has done it.

I tried 'converting' the offending file to UTF-8 format in Notepad, but this made no difference.

0

There are 0 best solutions below